if (remotingAttachments != null) {
// get the transaction attachment
final byte[] transactionIDBytes = remotingAttachments.getPayloadAttachment(0x0001);
// A (remote) tx is associated with the invocation, so propogate it appropriately
if (transactionIDBytes != null) {
final TransactionID transactionID = TransactionID.createTransactionID(transactionIDBytes);
// if it's UserTransaction then create or resume the UserTransaction corresponding to the ID
if (transactionID instanceof UserTransactionID) {
this.createOrResumeUserTransaction((UserTransactionID) transactionID);
} else if (transactionID instanceof XidTransactionID) {
this.createOrResumeXidTransaction((XidTransactionID) transactionID);