solves https://issues.jboss.org/browse/RAILO-2345
Merge pull request #169 from igal-getrailo/jira-2345

solves https://issues.jboss.org/browse/RAILO-2345