code: public I getNewInstance(Class<I> clazz) {
          Constructor<I> ctor;
          try {
              ctor = clazz.getConstructor();
              return ctor.newInstance();
          } catch (NoSuchMethodException | SecurityException | InstantiationException | IllegalAccessException
                  | IllegalArgumentException | InvocationTargetException e) {
              throw new InitializationException("Given class not found", e);
          }
      }
docs: Gets the new instance.
  
  @param clazz the clazz
  @return the new instance