code: private ResourceGenerator resolveResourceGenerator(String path) {
  
  		ResourceGenerator resourceGenerator = null;
  		for (ResourceGeneratorResolverWrapper resolver : resolverRegistry) {
  			if (resolver.matchPath(path)) {
  				resourceGenerator = resolver.getResourceGenerator();
  				if (resolver.getType().equals(ResolverType.PREFIXED)) {
  					loadGeneratorIfNeeded(resolver.getResourcePath(path));
  				}
  				break;
  			}
  		}
  
  		// Lazy load generator
  		if (resourceGenerator == null) {
  			resourceGenerator = loadCommonGenerator(path);
  		}
  
  		return resourceGenerator;
  	}
docs: Finds the resource generator which will handle the resource, whose the
  path is given in parameter
  
  @param path
  the resource path
  @return the resource generator