public static EditorType fromKey(final String key){
  if (key == null || key.isEmpty()) {
    return null;
  }
  final EditorType search=instances.get(key);
  if (search != null) {
    return search;
  }
 else {
    Log.debug(EditorType.class,"Creating new EditorType instance, key=" + key);
    final EditorType result=new EditorType(key);
    instances.put(key,result);
    return result;
  }
}

public static EditorType fromKey ( final String key ) { if ( key == null || key . isEmpty ( ) ) { return null ; } final EditorType search = instances . get ( key ) ; if ( search != null ) { return search ; } else { Log . debug ( EditorType . class , "Creating new EditorType instance, key=" + key ) ; final EditorType result = new EditorType ( key ) ; instances . put ( key , result ) ; return result ; } }
retrieve an editor type instance by its key .
