private static String toRemote(PathMapper pathMapper, String outputPath) {
    return pathMapper != null ? pathMapper.convertToRemote(outputPath) : outputPath;
  }
private static String toRemote(PathMapper pathMapper, String outputPath)