solved ticket https://issues.jboss.org/browse/RAILO-1966
add compatibility to java 7
add compatibility to java 7