code: public Path modifyPathToFinalDestination(Path path) throws IOException {
      String res;
      if (tempFileOriginator.equals(DEFAULT_FOUTPUTCOMMITTER_V1)) {
        res = parseHadoopOutputCommitter(path, true, hostNameScheme);
      } else {
        res = extractNameFromTempPath(path, true, hostNameScheme);
      }
      return new Path(hostNameScheme, res);
  
    }
docs: Accept temporary path and return a final destination path
  
  @param path path name to modify
  @return modified path name
  @throws IOException if error