Remove unnecessary hack for JDK6.

Remove unnecessary hack on read only mechanism.