protected function render(string $name, array $variables = []): string
    {
        $templateEngine = $this->getApp()->getService('templating');

        return $templateEngine->render($name, $variables);
    }