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