public function injectResponse(ViewEvent $e)
    {
        $renderer = $e->getRenderer();

        if ($renderer !== $this->renderer) {
            return;
        }

        $result   = $e->getResult();

        /** @var HttpResponse $response */
        $response = $e->getResponse();
        $response->setContent($result);
        $headers = $response->getHeaders();
        //$headers->addHeaderLine('Content-length', strlen($result));
        $headers->addHeaderLine('content-type', 'text/xml');
    }