org.linkedin.util-core/src/main/java/org/linkedin/util/io/resource/URLResource.java
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