public function onNotify(NotificationEvent $event) {
        if (true === ($this->getSession() instanceof Session)) {
            $this->getSession()->getFlashBag()->add($event->getNotification()->getType(), $event->getNotification()->getContent());
        }
        return $event;
    }