/* */ {
/* 272 */ InitialContext initCtx = new InitialContext();
/* */ try
/* */ {
/* 277 */ NonSerializableFactory.rebind(this.bindName, this.cf);
/* 278 */ Referenceable referenceable = (Referenceable)this.cf;
/* */
/* 280 */ ByteArrayOutputStream baos = new ByteArrayOutputStream();
/* 281 */ ObjectOutputStream oos = new ObjectOutputStream(baos);
/* 282 */ oos.writeObject(this.theProxy);
/* 283 */ oos.close();
/* */
/* 285 */ byte[] proxyBytes = baos.toByteArray();
/* 286 */ BinaryRefAddr dsAddr = new BinaryRefAddr("ProxyData", proxyBytes);
/* 287 */ String remoteFactoryName = RemoteConnectionFactoryHelper.class.getName();
/* 288 */ String localFactoryName = this.cf.getClass().getName();
/* */
/* 290 */ Reference dsRef = new Reference(localFactoryName, dsAddr, remoteFactoryName, null);
/* 291 */ referenceable.setReference(dsRef);
/* */
/* 293 */ baos.reset();
/* 294 */ ObjectOutputStream oos2 = new ObjectOutputStream(baos);
/* 295 */ oos2.writeObject(RemoteConnectionFactoryHelper.vmID);
/* 296 */ oos2.close();