aggregate.getClass().getSimpleName(),
aggregate.getIdentifier());
}
return similarAggregate;
}
EventRegistrationCallback eventRegistrationCallback = new UoWEventRegistrationCallback(eventBus);
registeredAggregates.put(aggregate, new AggregateEntry<T>(aggregate, saveAggregateCallback));
// listen for new events registered in the aggregate
aggregate.addEventRegistrationCallback(eventRegistrationCallback);