public function exportToDebugBar(DebugBar $debugBar)
    {
        $archive = $this->getCollectionRaw();

        foreach ($archive as $logentry) {
            if (false === empty($logentry)) {
                $debugBar['messages']->{$logentry['type']}($logentry['message']);
            }
        }

        /*
        $messagesCollector = new \DebugBar\DataCollector\MessagesCollector('Uprofiler');
        $messagesCollector->setDataFormatter(
            new Doozr_Formatter_Default()
        );
        $messagesCollector->addMessage('<a href="/uprofiler/index.php">link</a>');
        $debugBar->addCollector($messagesCollector);
        */

        return $debugBar;
    }