code: public void addCommitAction(final Runnable action) throws HibernateException
  	{
  		if (action == null)
  			return; // ignore null actions
  
  		addAction(new BaseSessionEventListener()
  		{
  			@Override
  			public void transactionCompletion(final boolean successful)
  			{
  				if (successful)
  					action.run();
  			}
  		});
  	}
docs: Register an action to run on the successful commit of the transaction
  
  @param action
  
  @throws HibernateException