code: public SipSession getSession(boolean create) {
  		if(logger.isDebugEnabled()) {
  			logger.debug("getSession - create=" + create);
  		}
  
  		MobicentsSipSession session = getSipSession();
  		if (session == null && create) {
  			MobicentsSipApplicationSession sipApplicationSessionImpl = (MobicentsSipApplicationSession)getSipApplicationSession(create);
                          if (sipApplicationSessionImpl != null) {
                              MobicentsSipSessionKey sessionKey = SessionManagerUtil.getSipSessionKey(sipApplicationSessionImpl.getKey().getId(), currentApplicationName, message, false);
                              session = sipApplicationSessionImpl.getSipContext().getSipManager().getSipSession(sessionKey, create,
                                              sipFactoryImpl, sipApplicationSessionImpl);
                              session.setSessionCreatingTransactionRequest(this);
                              session.setOrphan(isOrphan());
                              sessionKey = session.getKey();
                          }
  		}
  
  		if(session != null) {
  			return session.getFacade();
  		}
  		if(logger.isDebugEnabled()) {
  			logger.debug("getSession - returning null");
  		}
  		return null;
  	}
docs: /*
  (non-Javadoc)
  
  @see javax.servlet.sip.SipServletMessage#getSession(boolean)