public Resource createResource(URI uri) throws UnsupportedURIException
{
if(uri.getScheme() == null)
return FileResource.createFromRoot(new File(uri.getPath()));
SchemeURIResourceFactory factory = _factories.get(uri.getScheme());
if(factory == null)
throw new UnsupportedURIException("unsupported scheme " + uri.getScheme());
return factory.createResource(uri, this);
}