AUTOTAG-16: use generics to remove the dependency on tiles-request-api, remove the need for casting in generated classes