if (sco instanceof Collection)
{
// Detach all PC elements of the collection
SCOUtils.detachForCollection(sm, ((Collection)sco).toArray(), state);
sco.unsetOwner();
}
else if (sco instanceof Map)
{
// Detach all PC keys/values of the map
SCOUtils.detachForMap(sm, ((Map)sco).entrySet(), state);