solved ticket https://issues.jboss.org/browse/RAILO-3196 and added some generic types