if (ec != ec.getApiAdapter().getExecutionContext(newValue))
{
throw new NucleusUserException(LOCALISER.msg("RDBMS.SCO.Map.WriteValueInvalidWithDifferentPM"), ec.getApiAdapter().getIdForObject(newValue));
}
ObjectProvider vsm = ec.findObjectProvider(newValue);
// Ensure the current owner field is loaded, and replace with new value
if (ownerFieldNumber >= 0)
{
ec.getApiAdapter().isLoaded(vsm, ownerFieldNumber);