public function convertInfuseResponse(Response $res)
    {
        $response = new SymfonyResponse($res->getBody(), $res->getCode(), $res->headers());

        // transfer cookies
        foreach ($res->cookies() as $name => $params) {
            list($value, $expire, $path, $domain, $secure, $httponly) = $params;
            $cookie = new Cookie($name, $value, $expire, $path, $domain, $secure, $httponly);
            $response->headers->setCookie($cookie);
        }

        return $response;
    }