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);
    }
  }
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);
    }
  }
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 ) ; } }
Creates the resource from a url...

@param url
@return the resource
Creates the resource from a url ...