org.linkedin.util-core/src/main/java/org/linkedin/util/io/resource/internal/SchemeURIResourceFactory.java
public Resource createResource(URI uri, URIResourceFactory parent)
  {
    if(!getScheme().equals(uri.getScheme()))
      throw new IllegalArgumentException("cannot handle: " + uri.getScheme());

    return doCreateResource(uri, parent);
  }
public Resource createResource(URI uri, URIResourceFactory parent)
  {
    if(!getScheme().equals(uri.getScheme()))
      throw new IllegalArgumentException("cannot handle: " + uri.getScheme());

    return doCreateResource(uri, parent);
  }
Based on the URI returns the right resource

@param uri
@return the resource