Jira 2381

solves JIRA-2381
https://issues.jboss.org/browse/RAILO-2381