Add in Java 6 compatibility for Java 5.