* @param orb The ORB to which we connect the stub.
*/
public static StubIORImpl connect( StubIORImpl ior, org.omg.CORBA.Object proxy,
org.omg.CORBA.portable.ObjectImpl stub, ORB orb ) throws RemoteException
{
Delegate del = null ;
try {
try {
del = StubAdapter.getDelegate( stub );
if (del.orb(stub) != orb)
throw wrapper.connectWrongOrb() ;
} catch (org.omg.CORBA.BAD_OPERATION err) {
if (ior == null) {
// No IOR, can we get a Tie for this stub?
Tie tie = (javax.rmi.CORBA.Tie) Utility.getAndForgetTie(proxy);