InputStream in = EditorFactory.class.getClassLoader().getResourceAsStream("syntax.properties");
InputStream in = EditorFactory.class.getClassLoader().getResourceAsStream("ldap/editors/syntax.properties");
    public static Editor getEditorBySyntax(String syntax) {	Editor editor = (Editor)editorsBySyntax.get(syntax);	if (editor != null)	    return editor;	if (syntaxes == null) {	    syntaxes = new Properties();	    try {		InputStream in = EditorFactory.class.getClassLoader().getResourceAsStream("syntax.properties");		syntaxes.load(in);	    }	    catch (Exception e) {		logger.log(Level.WARNING, "name.properties", e);	    }	}	String className = syntaxes.getProperty(syntax);	if (className == null)	    return null;	try {	    Class clazz = Class.forName(className);	    editor = (Editor)clazz.newInstance();	    editorsBySyntax.put(syntax, editor);	    return editor;	}	catch (Exception e) {            logger.log(Level.WARNING, "class: " + className, e);	}	return null;    }