protected function handle($typoScriptPath, \Exception $exception, $referenceCode)
{
$context = $this->environment->getContext();
if ($context->isDevelopment()) {
$handler = new HtmlMessageHandler();
} else {
$handler = new XmlCommentHandler();
}
$handler->setRuntime($this->getRuntime());
return $handler->handleRenderingException($typoScriptPath, $exception);
}