code: private Class<? extends ConsoleEditor> resolve(String flavor) throws EditorInitializationException {
          ClassLoader classLoader = getClass().getClassLoader();
          try {
              Enumeration<URL> urls = classLoader.getResources(RESOURCE_PATH + flavor);
              while (urls.hasMoreElements()) {
                  URL url = urls.nextElement();
                  String txt = Resources.toString(url);
                  String[] jleditClasses = txt.split("\n");
                  for (String jleditClass : jleditClasses) {
                      if (!jleditClass.isEmpty()) {
                          Class clazz = classLoader.loadClass(jleditClass);
                          if (ConsoleEditor.class.isAssignableFrom(clazz)) {
                              return clazz;
                          }
                      }
                  }
              }
          } catch (Exception e) {
              throw new EditorInitializationException(e);
          }
          throw new EditorInitializationException("No Editor found for flavor:" + flavor);
      }
docs: Resolves the {@link ConsoleEditor} class for the specified flavor.
  @param flavor
  @return
  @throws EditorInitializationException