solved partaly ticket https://issues.jboss.org/browse/RAILO-2529 and fully solved ticket https://issues.jboss.org/browse/RAILO-2536