code: public static void validateWith(Class<Validator> provider) {
  
  		try {
  			validator = (Validator) ClassFactory.newInstanceOf(provider);
  			log.info("Registered validation provider: " + validator.getClass().getName());
  		}
  		catch (ClassFactoryException e) {
  			log.error("Failed to instantiate validation provider: ", e);
  			throw new IllegalArgumentException(e);
  		}
  	}
docs: Provide an validator to validate arguments
  
  @param provider class type