public Path build() {
    Path result = new Path(this.basePath);
    for (String descendant : descendants) {
      result = new Path(result, descendant);
    }
    return result;
  }
Path builder to stitch together paths with different components might be useful as utils across
replication semantic analyzer atleast.
ql/src/java/org/apache/hadoop/hive/ql/parse/repl/PathBuilder.java