code: public static void registerResource(final InternalResource resource) {
  		String resourceName = resource.getResourceName();
  
  		if (!RESOURCES.containsKey(resourceName)) {
  			RESOURCES.put(resourceName, resource);
  			RESOURCE_CACHE_KEYS.put(resourceName, computeHash(resource));
  		}
  	}
docs: Adds a resource to the resource map.
  
  @param resource the resource.