Java 7 features used.