code: public static <T> T newInstance(Class<T> type) {
          try {
              return type.newInstance();
          } catch (InstantiationException e) {
              throw new RuntimeException(e);
          } catch (IllegalAccessException e) {
              throw new RuntimeException(e);
          }
      }
docs: A helper method to create a new instance of a type using the default
  constructor arguments.