}
setDefaultDelegateOnEditingContext(ec, validationEnabled);
if (!useSharedEditingContext()) {
ec.lock();
ec.setSharedEditingContext(null);
ec.unlock();
}
NSNotificationCenter.defaultCenter().postNotification(EditingContextDidCreateNotification, ec);
if(objectStore instanceof ERXEC) {
ERXEC parent = (ERXEC)objectStore;
NSNotificationCenter.defaultCenter().addObserver(ec, ERXECProcessQueuedNotificationsSelector, ERXECProcessQueuedNotificationsNotification, parent);