code: public static <T> T instantiate(final Class<T> tClass,
                                      final T defaultEntity) {
          final T t = instantiate(tClass);
          return (t == null)
                  ? defaultEntity
                  : t;
      }
docs: Instantiate class if possible, or return default provided value
  @param tClass class to instantiate
  @param defaultEntity def provided value
  @param <T> class instance
  @return class instance