code: public Resource createResource(URI uri, URIResourceFactory parent)
    {
      if(!getScheme().equals(uri.getScheme()))
        throw new IllegalArgumentException("cannot handle: " + uri.getScheme());
  
      return doCreateResource(uri, parent);
    }
docs: Based on the URI returns the right resource
  
  @param uri
  @return the resource