getSession().getCommitManager().markPostModifyCommitInProgress(object);
getSession().getCommitManager().markPostModifyCommitInProgress(writeQuery.getObjectChangeSet());
// Verify if deep shallow modify is turned on
if (writeQuery.shouldCascadeParts()) {
queryManager.postUpdate(writeQuery);
}
// PERF: Avoid events if no listeners.
if (getDescriptor().getEventManager().hasAnyEventListeners()) {
getDescriptor().getEventManager().executeEvent(new DescriptorEvent(DescriptorEventManager.PostUpdateEvent, writeQuery));