code: public static Resource create(URL url, String rootPath)
    {
      try
      {
        return new URLResourceProvider(url, rootPath).getRootResource();
      }
      catch(UnsupportedURIException e)
      {
        throw new RuntimeException(e);
      }
      catch(URISyntaxException e)
      {
        throw new RuntimeException(e);
      }
    }
docs: Creates the resource from a url...
  
  @param url
  @return the resource