private static SourceVersion getLatestSupported() {
        try {
            String specVersion = System.getProperty("java.specification.version");
            if ("1.6".equals(specVersion))
                return RELEASE_6;
        } catch (SecurityException se) {}

        return RELEASE_5;
    }