protected function applyEventCreated(EventCreated $eventCreated, DomainMessage $message)
 {
     $this->logger->debug('UDB2 event created, with url ' . $eventCreated->getUrl());
     $xml = $this->retrieveXml($eventCreated->getUrl());
     $enrichedEventCreated = EventCreatedEnrichedWithCdbXml::fromEventCreated($eventCreated, $xml, $this->cdbXmlNamespaceUri);
     $this->publish($enrichedEventCreated, $message->getMetadata());
 }
 public static function fromEventCreated(EventCreated $eventCreated, StringLiteral $cdbXml, StringLiteral $cdbXmlNamespaceUri)
 {
     return new self($eventCreated->getEventId(), $eventCreated->getTime(), $eventCreated->getAuthor(), $eventCreated->getUrl(), $cdbXml, $cdbXmlNamespaceUri);
 }