docs: private void putLocalObject(final UploadObjectRequest reqIn,
              OutputStream os) throws IOException {
          UploadObjectRequest req = reqIn.clone();
  
          final File fileOrig = req.getFile();
          final InputStream isOrig = req.getInputStream();
  
          if (isOrig == null) {
              if (fileOrig == null)
                  throw new IllegalArgumentException("Either a file lor input stream must be specified");
              req.setInputStream(new FileInputStream(fileOrig));
              req.setFile(null);
          }
  
          try {
              IOUtils.copy(req.getInputStream(), os);
          } finally {
              cleanupDataSource(req, fileOrig, isOrig,
                      req.getInputStream(), log);
              IOUtils.closeQuietly(os, log);
          }
          return;
      }