if (stored_object instanceof ObjectImpl) {  Delegate d = ((ObjectImpl) stored_object)._get_delegate(); Delegate d2;  if (d != null) { iter = objects.entrySet().iterator(); while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (Obj) item.getValue(); d2 = ref.object._get_delegate();  if (d == d2 || (d2 != null && d2.equals(d))) return ref; } } }    iter = objects.entrySet().iterator();
  public Obj findObject(org.omg.CORBA.Object stored_object)  {    if (stored_object == null)      return null;    Map.Entry item;    Iterator iter = objects.entrySet().iterator();    Obj ref;    while (iter.hasNext())      {        item = (Map.Entry) iter.next();        ref = (Obj) item.getValue();        if (stored_object.equals(ref.object))          return ref;      }    return null;  }