add jdk6 support