TransactionContextFactory<TransactionContext> contextFactory =
new TransactionContextFactory<TransactionContext>(txnProxy,
"TestTransactionContextFactory")
{
protected TransactionContext createContext(Transaction txn) {
return new TransactionContext(txn) {
public boolean isPrepared() {
if (isPrepared) {
throw new RuntimeException(
"isPrepared fails during commit");
} else {