//but, it needs an xid!
TransIdentity transIdentity = new TransIdentity(null, null, NULL_XID);
int timeout = 0;
Any implementationSpecificData = Util.getORB().create_any();
PropagationContext propagationContext = new PropagationContext(timeout, transIdentity, NO_PARENTS, implementationSpecificData);
Codec codec = Util.getCodec();
Any any = Util.getORB().create_any();
PropagationContextHelper.insert(any, propagationContext);
byte[] encodedPropagationContext;
try {
encodedPropagationContext = codec.encode_value(any);
} catch (InvalidTypeForEncoding invalidTypeForEncoding) {
throw (INTERNAL)new INTERNAL("Could not encode propagationContext").initCause(invalidTypeForEncoding);
}
ServiceContext otsServiceContext = new ServiceContext(TransactionService.value, encodedPropagationContext);
ri.add_request_service_context(otsServiceContext, true);