Work with JDK 1.6