docs: public void setPathPrefix(String prefix) {
      if (prefix.startsWith("/") || prefix.endsWith("/")) {
        throw new IllegalArgumentException("Prefix must not start or end with '/'.");
      }
      pathPrefix = (prefix.length() == 0) ? prefix : (prefix + "/");
    }