Removed reference to Java 7 method