public function sendResponse()
    {
        if ($this->response instanceof SymfonyResponse) {
            $this->response->sendContent();
        }
        if ($this->templatefile !== false) {
            echo $this->template->render($this->templatefile, $this->templatefileParameters);
        }
    }