protected function prepareForResponse()
    {
        if ($this->preparedForResponse) {
            return;
        }

        $this->loadView();
        $this->loadThemer();
        $this->loadThemerDefaultFiles($this->config);
        $this->loadGlobalViewVariables($this->config);

        if (method_exists($this, 'prepareExtraForResponse')) {
            $this->prepareExtraForResponse();
        }

        $this->preparedForResponse = true;
    }