code: public static <T> T getInstance(String className, Class<T> ofType) throws IllegalStateException {
          return getInstance(className, ofType, new Class<?>[]{}, new Object[]{});
      }
docs: Creates and returns a new instance of class with name className, loading the class and using the default constructor.
  
  @param <T>
  @param className
  @param ofType
  @return a new instance of class loaded from className.
  
  @throws IllegalStateException if className could not be loaded or if that class does not have a default constructor
  or if the loaded class is not of the supplied type (ofType).