Changed project to Java 8 (to make use of Map.putIfAbsent).