code: public Object newInstance(String clazz) {
          try {
              return Class.forName(clazz).newInstance();
          } catch (Exception e) {
              error(e);
              return null;
          }
      }
docs: Creates a new instance object of the given class.
  
  @param clazz The Class of the new Object
  @return The new Object or null on any error.