docs: private static <C> Class<?> tryAlternateNames(Class<? super C> restrictionClass, String value, Entry e) {
      StringBuilder buf = new StringBuilder(value.length() + 100);
      // Try with FACTORY_POSTFIX first:
      Class<?> clazz = tryLoadClass(buf.append(value).append(FACTORY_POSTFIX).toString());
      if(clazz != null) {
        return clazz;
      }
      clazz = tryLoadClass(value); // Without FACTORY_POSTFIX.
      if(clazz != null) {
        return clazz;
      }
      buf.setLength(0);
      // Try prepending the package name:
      clazz = tryLoadClass(buf.append(restrictionClass.getPackage().getName()).append('.')//
          .append(value).append(FACTORY_POSTFIX).toString());
      if(clazz != null) {
        return clazz;
      }
      // Remove FACTORY_POSTFIX again.
      buf.setLength(buf.length() - FACTORY_POSTFIX.length());
      String value2 = buf.toString(); // Will also be used below.
      clazz = tryLoadClass(value2);
      if(clazz != null) {
        return clazz;
      }
      // Last, try aliases:
      if(e != null && e.aliaslen > 0) {
        for(int i = 0; i < e.aliaslen; i += 2) {
          if(e.aliases[i].equalsIgnoreCase(value) || e.aliases[i].equalsIgnoreCase(value2)) {
            return findImplementation(restrictionClass, e.aliases[++i]);
          }
        }
      }
      return null;
    }