Corrected the impl for jdk 1.6.