public function viewController()
    {
        $templateIdent = $this->templateIdent();

        if (!$templateIdent) {
            return [];
        }

        $templateFactory = clone($this->templateFactory());
        $templateFactory->setDefaultClass(GenericEmailTemplate::class);
        $template = $templateFactory->create($templateIdent);

        $template->setData($this->templateData());

        return $template;
    }