protected function setViewOptions($templateFileName, $titleId, $viewOptions)
    {
        $view = $this->getView();
        $view->setTemplateFileName($templateFileName);
        $view->setTitle($titleId);

        foreach ($viewOptions as $optionKey => $optionValue) {
            $view->setViewParam($optionKey, $optionValue);
        }
    }