code: public SipApplicationSession getApplicationSessionById(String applicationSessionId, boolean isContainerManaged) {
  		if(logger.isDebugEnabled()) {
  			logger.debug("getApplicationSessionById - applicationSessionId=" + applicationSessionId);
  		}
  		if(applicationSessionId == null) {
  			throw new NullPointerException("the given id is null !");
  		}
  		SipApplicationSessionKey applicationSessionKey;
  		try {
  			applicationSessionKey = SessionManagerUtil.parseSipApplicationSessionKey(applicationSessionId);
  		} catch (ParseException e) {
  			logger.error("the given application session id : " + applicationSessionId + 
  					" couldn't be parsed correctly ",e);
  			return null;
  		}
  		if(applicationSessionKey.getApplicationName().equals(sipContext.getApplicationName())) {
  			MobicentsSipApplicationSession sipApplicationSession = sipContext.getSipManager().getSipApplicationSession(applicationSessionKey, false);
  			if(sipApplicationSession == null) {
  				return null;
  			} else {
  				// make sure to acquire this app session and add it to the set of app sessions we monitor in the context of the application
  				// to release them all when we exit application code
  				sipContext.enterSipApp(sipApplicationSession, null, true, isContainerManaged);
  				return sipApplicationSession.getFacade();
  			}
  		} else {
  			logger.warn("the given application session id : " + applicationSessionId + 
  					" tried to be retrieved from incorret application " + sipContext.getApplicationName());
  			return null;
  		}
  	}
docs: /*
  (non-Javadoc)
  @see org.mobicents.javax.servlet.sip.SipSessionsUtilExt#getApplicationSessionById(java.lang.String, boolean)