switch from java 7 to java 6