code: private static void appendPath(QPath relPath, StringBuilder buffer) {
           QPathEntry[] elements = relPath.getEntries();
          String slash = "";
          for (int i = 0; i < elements.length; i++) {
              buffer.append(slash);
              slash = "/";
              buffer.append(elements[i].getAsString(true));
          }
      }
docs: Appends the relative path to the <code>buffer</code> using '/' as the
  delimiter for path elements.
  
  @param relPath a relative path.
  @param buffer the buffer where to append the path.