} else {  if (a instanceof IorProvider && b instanceof IorProvider) { IOR ia = ((IorProvider) a).getIor(); IOR ib = ((IorProvider) b).getIor();  if (ia != null && ib != null) return (ia.equals(ib)); else return ia == ib; }
  public boolean is_equivalent(org.omg.CORBA.Object target,                               org.omg.CORBA.Object other                              )  {    if (target == other)      return true;    if ((target instanceof ObjectImpl) && other instanceof ObjectImpl)      {        try          {            org.omg.CORBA.portable.Delegate a =              ((ObjectImpl) target)._get_delegate();            org.omg.CORBA.portable.Delegate b =              ((ObjectImpl) other)._get_delegate();            if (a == b)              {                return true;              }            if (a != null && b != null)              {                return a.equals(b);              }          }        catch (Exception ex)          {            // Unable to get one of the delegates.            return false;          }      }    return false;  }