Updating URLPatternFactory to Java 6 standards