https://issues.jboss.org/browse/RAILO-3088
https://issues.jboss.org/browse/RAILO-3086