migration to Java8