code: private void initializeGeneratorProperties(ResourceGenerator generator) {
  		// Initialize the generator
  		if (generator instanceof InitializingResourceGenerator) {
  			if (generator instanceof ConfigurationAwareResourceGenerator) {
  				((ConfigurationAwareResourceGenerator) generator).setConfig(config);
  			}
  			if (generator instanceof TypeAwareResourceGenerator) {
  				((TypeAwareResourceGenerator) generator).setResourceType(resourceType);
  			}
  			if (generator instanceof ResourceReaderHandlerAwareResourceGenerator) {
  				((ResourceReaderHandlerAwareResourceGenerator) generator).setResourceReaderHandler(rsHandler);
  			}
  			if (generator instanceof WorkingDirectoryLocationAware) {
  				((WorkingDirectoryLocationAware) generator).setWorkingDirectory(rsHandler.getWorkingDirectory());
  			}
  			if (generator instanceof PostInitializationAwareResourceGenerator) {
  				((PostInitializationAwareResourceGenerator) generator).afterPropertiesSet();
  			}
  		}
  	}
docs: Initializes the generator properties.
  
  @param generator
  the generator