code: public static final <T> T defaultFactory(Class<T> cls, String hint)
      {
          try
          {
              return cls.newInstance();
          }
          catch (InstantiationException | IllegalAccessException ex)
          {
              throw new IllegalArgumentException(ex);
          }
      }
docs: Default object factory that calls newInstance method. Checked exceptions
  are wrapped in IllegalArgumentException.
  @param <T>
  @param cls Target class
  @param hint Hint for factory
  @return