}
}
// check whether deep shallow modify is turned on
if (writeQuery.shouldCascadeParts()) {
queryManager.preDelete(writeQuery);
}
// In a unit of work/writeObjects the preDelete may cause a shallow update of this object,
// in this case the following second write must do the real delete.
if (!commitManager.isShallowCommitted(object) && !writeQuery.shouldCascadeParts()) {