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);
  }
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
Based on the URI returns the right resource