code: public static <T> T newInstance(final Class<T> clazz) {
          try {
              return clazz.newInstance();
          } catch (InstantiationException | IllegalAccessException e) {
              throw new ClassApiException(e);
          }
      }
docs: Creates new instance of class, rethrowing all exceptions in runtime.
  @param clazz type
  @param <T> class generic
  @return instance object