Migrated from Java 7 to Java 6 syntax.