Downgrade the Java code to 6