protected function applyContext($message, array $context = array())
    {
        foreach ($context as $key => $value) {
            $key = trim($key, "{}");
            if ($key != 'exception') {
                $message = $this->replaceContext($message, $key, $value);
            }
        }

        return $message;
    }