code: @SuppressWarnings("unchecked")
      protected <T> Class<T> getClassOrDefault(final String className, final Class<T> defaultResult) {
          try {
              return className == null
                      ? defaultResult
                      : (Class<T>)Class.forName(className);
          } catch (final ClassNotFoundException e) {
              LOG.error("ClassNotFoundException for {} - defaulting to {}", className, defaultResult);
              return defaultResult;
          }
      }
docs: Helper method used to obtain a class from a fully qualified class name. If the value is null or an exception is
  thrown, return the default result instead.
  @param className the fully qualified class name to try
  @param defaultResult the nullable default result
  @param <T> the class type
  @return the class or null