code: public ResourceMetadata getResourceMetadata(String resourceName) {
      if (!resourceMetadataMap.containsKey(resourceName)) {
        throw new RuntimeException("No resource metadata for " + resourceName);
      }
      return resourceMetadataMap.get(resourceName);
    }
docs: Get resource metadata for a resource name
  
  @param resourceName Name of the resource
  @return Resource metadata for this name
  @throws RuntimException if the resource name doesn't exist