Downgrade Java version to 1.6.
Migrate code to Java 6.