if (isTransactionActive(transactionManager)) {
//19.6.2.1 (1) propagate an "empty" transaction context.
//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) {