docs: @Deprecated
      public static <T extends RepositoryBrowser>
      T createInstance(Class<T> type, StaplerRequest req, String fieldName) throws FormException {
          List<Descriptor<RepositoryBrowser<?>>> list = filter(type);
          String value = req.getParameter(fieldName);
          if(value==null || value.equals("auto"))
              return null;
  
          // TODO: There was a TODO in the original code, which presumes passing something meaningful to the newInstance() JSON param
          // Now we just pass empty JSON in order to make the code compliant with the defined interface
          final JSONObject emptyJSON = new JSONObject();
          return type.cast(list.get(Integer.parseInt(value)).newInstance(req, emptyJSON));
      }