code: public static Resource create(File root, String path)
    {
      FileResourceProvider frp = null;
      try
      {
        frp = new FileResourceProvider(root);
      }
      catch(IOException e)
      {
        throw new RuntimeException(e);
      }
      return frp.createResource(path);
    }
docs: Creates a file resource with the root provided and the path (relative to the root).
  
  @param root the root of the resource
  @param path the path (relative to root)
  @return the resource