docs: @VisibleForTesting
    protected void validateHttpRpcPluginPath(final String path) {
      Preconditions.checkArgument(!Strings.isNullOrEmpty(path),
          "Invalid HttpRpcPlugin path. Path is null or empty.");
      final String testPath = path.trim();
      Preconditions.checkArgument(!HAS_PLUGIN_BASE_WEBPATH.matcher(path).matches(),
          "Invalid HttpRpcPlugin path %s. Path contains system's plugin base path.",
          testPath);
  
      URI uri = URI.create(testPath);
      Preconditions.checkArgument(!Strings.isNullOrEmpty(uri.getPath()),
          "Invalid HttpRpcPlugin path %s. Parsed path is null or empty.", testPath);
      Preconditions.checkArgument(!uri.getPath().equals("/"),
          "Invalid HttpRpcPlugin path %s. Path is equal to root.", testPath);
      Preconditions.checkArgument(Strings.isNullOrEmpty(uri.getQuery()),
          "Invalid HttpRpcPlugin path %s. Path contains query parameters.", testPath);
    }