solves https://issues.jboss.org/browse/RAILO-2364
improved code style for clarity
Merge pull request #172 from igal-getrailo/jira-2364

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