Tie servantsTie = javax.rmi.CORBA.Util.getTie(remote);
// Note: at this point the Tie doesnt have a delegate inside it,
// so it is not really "exported".
// The following call does orb.connect() which is the real exporting
servantsTie.orb(orb);
}
java.rmi.Remote getStub(java.rmi.Remote remote)
throws java.rmi.RemoteException {
return PortableRemoteObject.toStub(remote);