}
if (value instanceof SCOContainer)
{
// Already have a SCO value
SCOContainer sco = (SCOContainer) value;
if (ownerOP.getObject() == sco.getOwner() && mmd.getName().equals(sco.getFieldName()))
{
// Flush any outstanding updates
ownerOP.getExecutionContext().flushOperationsForBackingStore(((BackedSCO)sco).getBackingStore(), ownerOP);
return;
}
if (sco.getOwner() != null)
{
throw new NucleusException(LOCALISER.msg("CollectionMapping.WrongOwnerError")).setFatal();
}
}