JDK6 compat fix