java 6 migration