code: private final void complete(Transaction tx, boolean readOnly)
  	{
  		if (log.isTraceEnabled())
  			log.trace("Complete " + tx);
  
  		if (!readOnly)
  			tx.commit();
  		else
  			tx.rollback();
  	}
docs: Complete the transaction
  @param tx
  @param readOnly
  the read-only flag on the transaction (if true, the transaction will be rolled back, otherwise the transaction will be