from java 1.7 to java 1.6