[java] Closure in Java 7