Backport to Java 7 with lambda's