code: public static ObjectComparatorFactory newInstance(final String objectComparatorFactoryClassName,
        final ClassLoader classLoader)
        throws InstantiationException, IllegalAccessException, ClassNotFoundException {
      return (ObjectComparatorFactory) Class
          .forName(objectComparatorFactoryClassName, true, classLoader)
          .newInstance();
    }
docs: Create a new instance of a the specified factory class by using the specified class loader.
  
  @param objectComparatorFactoryClassName the factory class
  @param classLoader                      the class loader
  @return a new instance of a the specified factory
  @throws InstantiationException if creation of the factory fails
  @throws IllegalAccessException if creation of the factory fails
  @throws ClassNotFoundException if creation of the factory fails