migration to the java 1.8