code: public static <T> T newInstance(String className, Site site) {
          return newInstance(className, null, site, site != null ? site.getConfig() : null);
      }
docs: Create a new instance for the specified class name.
  
  @param className class name
  @param site      site object
  @return new instance