code: @Override
      public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException,
              SecurityException, IllegalStateException, SystemException
      {
          Transaction tx = threadLocal.get();
  
          try
          {
              if (tx != null)
              {
                  if (log.isDebugEnabled())
                      log.info("Commiting transaction:" + tx);
                  tx.commit();
              }
              else
              {
                  log.debug("Cannot locate a transaction to commit.");
  
              }
          }
          finally
          {
              if (log.isDebugEnabled())
                  log.info("Resetting after commit.");
              threadLocal.set(null);
              timerThead.set(null);
          }
      }
docs: /*
  (non-Javadoc)
  
  @see javax.transaction.UserTransaction#commit()