If this code is truly only needed for JDK < 6, then it could quite possibly be unnecessary.  Would it be worth commenting out this block, and then testing with openjdk6/7 and oracle java 6/7?  If all these variants work, then it could be removed.