modify for Java 1.7.0_45 security feature