protected void continueTx(JtxTransaction sourceTx, JtxTransactionMode destMode) {
if (validateExistingTransaction == false) {
return;
}
JtxTransactionMode sourceMode = sourceTx.getTransactionMode();
JtxIsolationLevel destIsolationLevel = destMode.getIsolationLevel();
if (destIsolationLevel != ISOLATION_DEFAULT) {
JtxIsolationLevel currentIsolationLevel = sourceMode.getIsolationLevel();
if (currentIsolationLevel != destIsolationLevel) {
throw new JtxException("Participating TX specifies isolation level: " + destIsolationLevel +
" which is incompatible with existing TX: " + currentIsolationLevel);
}
}