JAVA 7 compatibility