Port to Java 6.