code: public static RegionMetadata load(
              final ClassLoader classLoader,
              final String name) throws IOException {
  
          InputStream stream = classLoader.getResourceAsStream(name);
          if (stream == null) {
              throw new FileNotFoundException(
                      "No resource '" + name + "' found.");
          }
          return load(stream);
      }
docs: Loads a set of region metadata from an XML file stored as a resource
  of the given classloader.
  
  @param classLoader the class loader to load the resource from
  @param name        the path to the resource
  @return the parsed region metadata
  @throws IOException if the resource is not found or cannot be parsed