code: private void updateRegistries(ResourceGenerator generator) {
  
  		resolverRegistry.add(new ResourceGeneratorResolverWrapper(generator, generator.getResolver()));
  		GeneratorComparator genComparator = new GeneratorComparator();
  		Collections.sort(resolverRegistry);
  		if (generator instanceof StreamResourceGenerator) {
  			binaryResourceGeneratorRegistry.add(generator);
  			Collections.sort(binaryResourceGeneratorRegistry, genComparator);
  		}
  		if (generator instanceof CssResourceGenerator) {
  			if (((CssResourceGenerator) generator).isHandlingCssImage()) {
  				cssImageResourceGeneratorRegistry.add(generator);
  				Collections.sort(cssImageResourceGeneratorRegistry, genComparator);
  			}
  		}
  		if (generator instanceof BundlingProcessLifeCycleListener) {
  			bundlingProcesslifeCycleListeners.add((BundlingProcessLifeCycleListener) generator);
  		}
  	}
docs: Update the registries with the generator given in parameter
  
  @param generator
  the generator