Support Java 8 lambda