}
if (value instanceof SCOContainer)
{
// Already have a SCO value
SCOContainer sco = (SCOContainer) value;
if (sm.getObject() == sco.getOwner() && fieldName.equals(sco.getFieldName()))
{
// Flush any outstanding updates
sco.flush();
return;
}
if (sco.getOwner() != null)
{
throw new NucleusException(LOCALISER.msg("CollectionMapping.WrongOwnerError")).setFatal();
}
}