This won't work with Java 6.