// if audit log on for any fields, save old value before the update so we still have both
if (value != null && value.getModelEntity().getHasFieldWithAuditLog()) {
createEntityAuditLogAll(value, true, false);
}
int retVal = helper.store(value);
// refresh the valueObject to get the new version
if (value.lockEnabled()) {
refresh(value, doCacheClear);
}