public function registerAggregateFactory(AggregateFactoryInterface $aggregateFactory)
 {
     return $this->registerRepository(new EventSourcingRepository($aggregateFactory->getAggregateType(), $this->eventBus, new NullLockManager(), $this->eventStore, $aggregateFactory));
 }