JDK7 Compatability fix.