try {
// Use CDR encapsulation with GIOP 1.0 encoding
Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value,
(byte) 1, /* GIOP version */
(byte) 0 /* GIOP revision*/);
Codec codec = info.codec_factory().create_codec(encoding);
// Get a reference to the PICurrent
org.omg.CORBA.Object obj =
info.resolve_initial_references("PICurrent");
org.omg.PortableInterceptor.Current piCurrent =