private static function processContext($message, array $context = array())
    {
        $replace = array();

        foreach ($context as $key => $value) {
            $templated           = "{" . $key . "}";
            $replace[$templated] = $value;
        }

        if (self::checkContextException($context)) {
            /**
             * @var \Exception $exception
             */
            $exception = $context["exception"];

            $replace["{line}"]    = $exception->getLine();
            $replace["{file}"]    = $exception->getFile();
            $replace["{message}"] = $exception->getMessage();
        }

        return strtr($message, $replace);
    }