public function context($request, $session = null)
    {
        $serverRequest = $request->serverRequest();
        $cookieArray = $serverRequest->getCookieParams();
        $cookies = $this->builder->cookies($cookieArray);
        if ($session === null) {
            $session = $this->builder->sapiSession();
        }

        return $this->builder->context($request, $cookies, $session);
    }