if (subordinateTransaction == null) {
throw new XAException(XAException.XAER_INVAL);
}
if (subordinateTransaction.activated()) {
subordinateTransaction.doRollback();
// remove the imported tx
SubordinationManager.getTransactionImporter().removeImportedTransaction(xid);
} else {
throw new XAException(XAException.XA_RETRY);
}