code: public static Object newInstanceForClassName(final String className) {
      try {
        return newInstance(Class.forName(className));
      } catch (Exception ex) {
        throw new Error(String.format("Can't create instance of %s for error %s", className, ex.getMessage()), ex);
      }
    }
docs: Find class for name and make an instance through call of the default constructor.
  
  @param className the class name to be instantiated, must not be null
  @return new instance of the class, must not be null
  @throws Error if it is impossible to build instance for an exception