protected function display($response) {
        // TODO get rid of backwards compat here.
        if($response->alteredSession()) {
            $this->request->setAllSession($response->getAllSession());
        }
        if($response->alteredCookies()) {
            $this->request->setAllCookies($response->getAllCookies());
        }
        $this->request->commitSessionAndCookies();
        if(is_object($response)) {
            $response->compile();
        } else {
            echo $response;
        }
    }