if (uow.isMergePending()) {
// uow in PENDING_MERGE state, merge clones
uow.mergeClonesAfterCompletion();
}
} else {
uow.afterTransaction(false, true);// committed=false; externalTxn=true
}
} catch (RuntimeException rtEx) {
// First log the exception so it gets seen
uow.log(new SessionLogEntry(uow, SessionLog.WARNING, SessionLog.TRANSACTION, rtEx));
// Rethrow it just for fun (app servers tend to ignore them at this stage)