try {
return (ServerTransaction) baseTr;
} catch (ClassCastException e) {
final String msg = "unexpected transaction type:" +
baseTr.getClass();
final UnknownTransactionException ute =
new UnknownTransactionException(msg);
if (txnLogger.isLoggable(Levels.FAILED))
txnLogger.log(Levels.FAILED, msg, ute);
throw ute;
}
}