fix for ticket 2862

https://issues.jboss.org/browse/RAILO-2862