code: public UriBuilder path(String path) throws URISyntaxException {
          path = path.trim();
          if (getPath().endsWith("/")) {
              return new UriBuilder(setPath(String.format("%s%s", getPath(), path)));
          } else {
              return new UriBuilder(setPath(String.format("%s/%s", getPath(), path)));
          }
      }
docs: Appends a path to the current one
  
  @param path
  @return
  @throws URISyntaxException