Playing with closures in Java 7. Thanks to Dan Grossman