solves https://issues.jboss.org/browse/RAILO-3067
Merge pull request #407 from denuno/jira3067

Jira3067