code: public SipApplicationSession createApplicationSession(boolean managed) {
  		MobicentsSipApplicationSession sipApplicationSessionImpl = null; 
  		HttpSession httpSession = threadLocalHttpSession.get();
  		// make sure we don't create a new sip app session if the http session has already one associated
  		if(httpSession != null) {
  			ConvergedSession convergedSession = (ConvergedSession) httpSession;
  			sipApplicationSessionImpl = convergedSession.getApplicationSession(false);
  		}
  		if(sipApplicationSessionImpl == null) {
  			sipApplicationSessionImpl =
  				(MobicentsSipApplicationSession)sipFactoryImpl.createApplicationSessionByAppName(sipContext.getApplicationName(), managed);
  			associateHttpSession(sipApplicationSessionImpl);
  		}
  		return sipApplicationSessionImpl;
  	}
docs: /*
  (non-Javadoc)
  @see org.mobicents.javax.servlet.sip.SipFactoryExt#createApplicationSession(boolean)