protected function getTemplateEngine(): TemplateEngineDriver
    {
        if (!$this->drivers->get('templateEngine') instanceof TemplateEngineDriver) {
            throw new DriverNotSupportedException('Provided template engine driver is not supported.');
        }

        return $this->drivers->get('templateEngine');
    }