if (ec.parentObjectStore() == ec.rootObjectStore()) {
String notificationName = n.name();
if (notificationName.equals(ERXEC.EditingContextWillSaveChangesNotification)) {
ec.processRecentChanges();
NSArray inserted = ec.insertedObjects();
NSArray updated = ec.updatedObjects();
updated = ERXArrayUtilities.arrayMinusArray(updated, inserted);
NSArray deleted = ec.deletedObjects();
Transaction transaction = new Transaction(ec);