if (subordinateTransaction == null) {
throw new XAException(XAException.XAER_INVAL);
}
if (subordinateTransaction.activated()) {
// We have a bug in JBoss TS. Till that is fixed, we need this call.
// See the comments on the hackJTS method for more details
this.hackJTS(subordinateTransaction);
if (this.onePhaseCommit) {