public static Class forName(final String className, final RuntimeException e) {
    try {
      return Class.forName(className);
    } catch (ClassNotFoundException ignore) {
      throw e;
    } catch (NoClassDefFoundError ignore) {
      throw e;
    }
  }
Attempts to load the specified class by fully qualified name. If the class could not be found,
then this method handles the ClassNotFoundException and throws the specified RuntimeException
instead.
<p>

@param className a String indicating the fully qualified name of the class to load.
@param e the RuntimeException to throw in place of the ClassNotFoundException if the class
       could not be found and loaded.
@return a Class object representing the specified class by name.
@throws NullPointerException if either className or RuntimeException is null.
@see java.lang.Class#forName(String)
geode-common/src/main/java/org/apache/geode/internal/lang/utils/ClassUtils.java