code: private Path concatPaths(String... names) {
      if (names == null || names.length == 0) {
        return null;
      }
      Path cur = new Path(names[0]);
      for (int i = 1; i < names.length; ++i) {
        cur = new Path(cur, new Path(names[i]));
      }
      return cur;
    }
docs: Concatenate multiple directory or file names into one path
  
  @return Concatenated path or null if the parameter is empty