{
Iterator oldIter = oldRefs.references.entrySet().iterator();
while(oldIter.hasNext())
{
Map.Entry entry = (Map.Entry) oldIter.next();
Identity oldOid = (Identity) entry.getKey();
/*
search for deleted objects: if in the new image an object
from the old image is not contained, we found a deleted object
*/
if(!isUnmaterializedProxy() && !containsReference(oldOid))
{
listener.deletedXToN(cod, entry.getValue(), oldOid);
}
}
}
// find new reference objects
if(references.size() > 0)
{
Iterator newIter = references.entrySet().iterator();
while(newIter.hasNext())
{
Map.Entry entry = (Map.Entry) newIter.next();
Identity newOid = (Identity) entry.getKey();
/*
search for added objects: if in the old image an object
from the new image is not contained, we found a added object
*/
if(!oldRefs.containsReference(newOid))