code: public DocPath resolve(DocPath p) {
          if (p == null || p.isEmpty())
              return this;
          if (path.isEmpty())
              return p;
          return new DocPath(path + "/" + p.getPath());
      }
docs: Return the path by appending the specified path to the current path.