code: public void putDialog(SIPDialog dialog) throws SipCacheException {
  		UserTransaction tx = null;
  		try {
  			Properties prop = new Properties();
  			prop.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.cache.transaction.DummyContextFactory");
  			tx = (UserTransaction) new InitialContext(prop).lookup("UserTransaction");
  			if(tx != null) {
  				tx.begin();
  			}
  			Node dialogNode = dialogRootNode.addChild(Fqn.fromString(dialog.getDialogId()));
  			dialogNode.put(dialog.getDialogId(), dialog);
  			if(tx != null) {
  				tx.commit();
  			}
  		} catch (Exception e) {
  			if(tx != null) {
  				try { tx.rollback(); } catch(Throwable t) {}
  			}
  			throw new SipCacheException("A problem occured while putting the following dialog " + dialog.getDialogId() + "  into JBoss Cache", e);
  		} 
  	}
docs: /* (non-Javadoc)
  @see org.mobicents.ha.javax.sip.cache.SipCache#putDialog(gov.nist.javax.sip.stack.SIPDialog)