@Override
public DomainEventStream readEvents(String type, Object identifier, long firstSequenceNumber,
long lastSequenceNumber) {
if (!store.containsKey(identifier)) {
throw new AggregateNotFoundException(identifier, "Aggregate not found");
}
final List<DomainEventMessage> events = store.get(identifier);
List<DomainEventMessage> filteredEvents = new ArrayList<DomainEventMessage>();
for (DomainEventMessage message : events) {
if (message.getSequenceNumber() >= firstSequenceNumber