JUDDI-241 removing reference to JDK7 specific api in favor of JDK6