if (ts.getState() != TransactionState.PREPARED) {
throw new Exception(rb.getString(rb.E_TRANSACTION_NOT_PREPARED, tid));
}
JMQXid xid = tl.UIDToXid(tid);
if (xid == null) {
throw new Exception(rb.getString(rb.E_INTERNAL_BROKER_ERROR,
"Could not find Xid for " + tid));
}