* @return
* @throws Exception
*/
@Override
public Object processInvocation(InterceptorContext context) throws Exception {
final RemotingAttachments remotingAttachments = context.getPrivateData(RemotingAttachments.class);
final TransactionManager transactionManager = this.ejbRemoteTransactionsRepository.getTransactionManager();
Transaction originatingRemoteTx = null;
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) {