code: public static <T> T newInstance(String name) {
          try {
              return (T) getClass(name).newInstance();
          } catch (InstantiationException | ClassNotFoundException | IllegalAccessException e) {
              throw new IllegalStateException(e.getMessage(), e);
          }
      }
docs: <p>newInstance.</p>
  
  @param name a {@link java.lang.String} object.
  @param <T> a T object.
  @return a T object.