if (getManageRelationsChecks())
{
// Tests for negative situations where inconsistently assigned
for (ObjectProvider sm : managedRelationDetails.keySet())
{
LifeCycleState lc = sm.getLifecycleState();
if (lc == null || lc.isDeleted())
{
// Has been deleted so ignore all relationship changes
continue;
}
RelationshipManager relMgr = managedRelationDetails.get(sm);
relMgr.checkConsistency();
}
}
// Process updates to manage the other side of the relations
Iterator<ObjectProvider> opIter = managedRelationDetails.keySet().iterator();
while (opIter.hasNext())
{
ObjectProvider op = opIter.next();
LifeCycleState lc = op.getLifecycleState();
if (lc == null || lc.isDeleted())
{
// Has been deleted so ignore all relationship changes
continue;
}
RelationshipManager relMgr = managedRelationDetails.get(op);