code: String withPath(String[] path) {
          StringBuilder sb = new StringBuilder();
          if (path.length > 0) {
              sb.append(" (with path ");
              for (int i = 0; i < path.length - 1; i++) {
                  sb.append(path[i]);
                  sb.append(".");
              }
              sb.append(path[path.length - 1]);
              sb.append(") ");
          }
          return sb.toString();
  
      }
docs: Convert path array to a readable representation.
  
  @param path array of path elements
  @return original path string