code: public static File uriToFile(URI u) throws IOException {
      if (!u.getScheme().equals(NNStorage.LOCAL_URI_SCHEME)) {
        throw new IOException("URI does not represent a file");
      }
      return new File(u.getPath());
    }
docs: Get file associated with the given URI