docs: private AbstractHttpQuery createQueryInstance(final TSDB tsdb,
          final HttpRequest request,
          final Channel chan) 
              throws BadRequestException {
      final String uri = request.getUri();
      if (Strings.isNullOrEmpty(uri)) {
        throw new BadRequestException("Request URI is empty");
      } else if (uri.charAt(0) != '/') {
        throw new BadRequestException("Request URI doesn't start with a slash");
      } else if (rpc_manager.isHttpRpcPluginPath(uri)) {
        http_plugin_rpcs_received.incrementAndGet();
        return new HttpRpcPluginQuery(tsdb, request, chan);
      } else {
        http_rpcs_received.incrementAndGet();
        HttpQuery builtinQuery = new HttpQuery(tsdb, request, chan);
        return builtinQuery;
      }
    }