} catch (BAD_OPERATION exc) {
// Thrown when tie is an ObjectImpl and its delegate is not set.
tie.orb(orb);
} catch (BAD_INV_ORDER exc) {
// Thrown when tie is a Servant and its delegate is not set.
tie.orb(orb);
}
if (existingOrb != orb)
throw wrapper.connectTieWrongOrb() ;