code: public boolean addObjectFactoryForClass(JDefinedClass clazz) {
  		JDefinedClass valueObjectFactoryClass = clazz._package()._getClass(FACTORY_CLASS_NAME);
  
  		if (objectFactoryClasses.containsKey(valueObjectFactoryClass.fullName())) {
  			return false;
  		}
  
  		objectFactoryClasses.put(valueObjectFactoryClass.fullName(), valueObjectFactoryClass);
  
  		JDefinedClass objectFactoryClass = null;
  
  		// If class has a non-hidden interface, then there is object factory in another package.
  		for (Iterator<JClass> iter = clazz._implements(); iter.hasNext();) {
  			JClass interfaceClass = iter.next();
  
  			if (!isHiddenClass(interfaceClass)) {
  				objectFactoryClass = interfaceClass._package()._getClass(FACTORY_CLASS_NAME);
  
  				if (objectFactoryClass != null) {
  					objectFactoryClasses.put(objectFactoryClass.fullName(), objectFactoryClass);
  				}
  			}
  		}
  
  		return objectFactoryClass != null;
  	}
docs: For the given class locate and add Object Factory classes to the map.
  
  @return {@code true} if value class generation is enabled