Changed to Java 7 syntax.