throwOnError(wc, wr);
//check for updated count if we have a gle
CommandResult gle = wr.getCachedLastError();
if (gle != null && res.getUpdatedCount() == 0)
throw new UpdateException("Not updated: " + gle);
postSaveOperations(entity, dbObj, involvedObjects);
return key;
}