code: private static String mergePaths(String path1, String path2)
    {
      return path1 + (path1.endsWith(Path.SEPARATOR) ? "" : Path.SEPARATOR) + path2;
    }
docs: some hadoop version Path.mergePaths does not exist