updateKeyFk(sm, newKey, newOwner);
}
// Ensure the current value field is loaded, and replace with new value
ec.getApiAdapter().isLoaded(vsm, valueFieldNumber);
oldValue = vsm.provideField(valueFieldNumber); // TODO Should we update the local variable ?
vsm.replaceFieldMakeDirty(valueFieldNumber, newValue);
if (ec.getManageRelations())
{
ec.getRelationshipManager(vsm).relationChange(valueFieldNumber, oldValue, newValue);
}