throw new IllegalTransactionStateException(CoreMessages.transactionAlreadyBound());
}
if (oldTx != null && oldTx instanceof DelegateTransaction)
{
DelegateTransaction delegateTransaction = (DelegateTransaction) oldTx;
if (!delegateTransaction.supportsInnerTransaction(transaction))
{
throw new IllegalTransactionStateException(CoreMessages.transactionAlreadyBound());
}
return;
}