object().editingContext().saveChanges();
ERXEOControlUtilities.saveChanges(object().editingContext());
    public boolean tryToSaveChanges(boolean validateObject) { // throws Throwable {        validationLog.debug("tryToSaveChanges calling validateForSave");        boolean saved = false;        try {            if (object()!=null && validateObject && shouldValidateBeforeSave()) {                if (_context.insertedObjects().containsObject(object()))                    object().validateForInsert();                else                    object().validateForUpdate();            }            if (object()!=null && shouldSaveChanges() && object().editingContext().hasChanges())                object().editingContext().saveChanges();            saved = true;        } catch (NSValidation.ValidationException ex) {            errorMessage = ERXLocalizer.currentLocalizer().localizedTemplateStringForKeyWithObject("CouldNotSave", ex);            validationFailedWithException(ex, ex.object(), "saveChangesExceptionKey");        } catch(EOGeneralAdaptorException ex) {            if(shouldRecoverFromOptimisticLockingFailure() && ERXEOAccessUtilities.recoverFromAdaptorException(object().editingContext(), ex)) {                errorMessage = ERXLocalizer.currentLocalizer().localizedTemplateStringForKeyWithObject("CouldNotSavePleaseReapply", d2wContext());            } else {                throw ex;            }        }        return saved;    }