public function process(ServerRequestInterface $request, RequestHandlerInterface $requestHandler): ResponseInterface
    {
        $this->container->set(ServerRequestInterface::class, $request);
        $result = $this->dispatch($this->route($request));
        if ($result instanceof ResponseInterface) {
            return $result;
        }

        return $response = (new Response())
            ->withProtocolVersion('1.1')
            ->withBody(\GuzzleHttp\Psr7\stream_for($result));
    }