anchor.diff:      newBalance = (tradeBalance != null ? tradeBalance : 0) + purchase;
       trades.put(customer, newBalance);
   
  -    txmgr.commit();
  +    txManager.commit();
       retryTransaction = false;
     } 
     catch (CommitConflictException conflict) {
  
positive.code:     Region<ProductId, Integer> inventoryRegion = rfc.getDataSet();
  
      CacheTransactionManager 
          mgr = CacheFactory.getAnyInstance().getCacheTransactionManager();
  
      // single argument will be a ProductId and a quantity
      ProductRequest request = (ProductRequest) rfc.getArguments();
      ProductId productRequested = request.getProductId();
      Integer qtyRequested = request.getQuantity();
   
      Boolean success = false;
  
      do {
        Boolean commitConflict = false;
        try {
          mgr.begin();
  
          Integer qtyAvailable = inventoryRegion.get(productRequested);
          Integer qtyRequested = request.getQuantity();
          if (qtyAvail >= qtyRequested) {
            // enough inventory is available, so process request
            Integer remaining = qtyAvailable - qtyRequested;
            inventoryRegion.put(productRequested, remaining);
            success = true;
          } 
  
          mgr.commit();
        } catch (CommitConflictException conflict) {
          // retry transaction, as another request on this same key succeeded,
          // so this transaction attempt failed
  
negative.code:            .create("trades");
  
  // transaction code
  CacheTransactionManager txManager = cache.getCacheTransactionManager();
  boolean retryTransaction = false;
  do {
    try {
      txManager.begin();
  
      // Subtract out the cost of the trade for this customer's balance
      Integer cashBalance = cash.get(customer);
  