code: public static RegionMetadata load(
              final Class<?> clazz,
              final String name) throws IOException {
  
          InputStream stream = clazz.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 classloader used to load the given class.
  
  @param clazz the class to use as a base for the resource
  @param name  the path to the resource, relative to the given class
  @return the parsed region metadata
  @throws IOException if the resource is not found or cannot be parsed