public function executeHook(Dictionary $params)
    {
        $responder = $params['responder'] ?? null;
        $mime = $params['mime'] ?? null;

        $result = empty($responder) ? null : $responder->getResult();
        $response = empty($result) ? null : $result->getResponse();

        if ($response instanceof HTTPError)
            $response = $response->getResponse();

        if ($response instanceof StringResponse && $mime === "text/html")
        {
            $output = $response->getOutput($mime);
            $output = $this->replaceTokens($output);
            $response->setOutput($output, $mime);
        }
    }