final DBCursor dbCursor = storageStrategy.findEvents(mongoTemplate.domainEventCollection(),
type,
identifier.toString(),
firstSequenceNumber);
DomainEventStream stream = new CursorBackedDomainEventStream(dbCursor, null, identifier, lastSequenceNumber,
false);
if (!stream.hasNext()) {
throw new EventStreamNotFoundException(type, identifier);
}
return stream;
}