public function setListener($listener)
    {
        $listener->getSharedManager()->attach('*', NotificationEvent::EVENT_NOTIFICATION_HTML, array($this,'createOutput'), 1);
        $this->notificationListener = $listener;
    }