/**
  * @param IncomingMessageEvent $event
  */
 public function onStoreMessages(IncomingMessageEvent $event)
 {
     if (false === $this->storage->store($event->getMessages())) {
         $event->setError('MongoDB Write failed: ' . $this->storage->getLastErrorMsg());
     }
 }