docs: public Node uploadFile( Session session,
                              String path,
                              File file ) throws RepositoryException, IOException {
          isNotNull(session, "session");
          isNotNull(path, "path");
          isNotNull(file, "file");
  
          if (!file.exists()) {
              throw new IllegalArgumentException("The file \"" + file.getCanonicalPath() + "\" does not exist");
          }
          if (!file.canRead()) {
              throw new IllegalArgumentException("The file \"" + file.getCanonicalPath() + "\" is not readable");
          }
          // Determine the 'lastModified' timestamp ...
          Calendar lastModified = Calendar.getInstance();
          lastModified.setTimeInMillis(file.lastModified());
  
          // Open the URL's stream first ...
          InputStream stream = new BufferedInputStream(new FileInputStream(file));
          return uploadFile(session, path, stream);
      }