code: static String rawPath(URI wsURL) {
          String path = wsURL.getRawPath();
          String query = wsURL.getRawQuery();
          if (query != null && !query.isEmpty()) {
              path = path + '?' + query;
          }
  
          return path == null || path.isEmpty() ? "/" : path;
      }
docs: Return the constructed raw path for the give {@link URI}.