code: private void addInfoForRoutingBackToContainer(SipApplicationRouterInfo routerInfo, String applicationSessionId, String applicationName) throws ParseException, SipException {
  		final Request request = (Request) super.message;
  		final javax.sip.address.SipURI sipURI = JainSipUtils.createRecordRouteURI(
  				sipFactoryImpl.getSipNetworkInterfaceManager(),
  				request);
  		sipURI.setLrParam();
  		sipURI.setParameter(MessageDispatcher.ROUTE_PARAM_DIRECTIVE,
  				routingDirective.toString());
  		if(getSipSession().getRegionInternal() != null) {
  			sipURI.setParameter(MessageDispatcher.ROUTE_PARAM_REGION_LABEL,
  					getSipSession().getRegionInternal().getLabel());
  			sipURI.setParameter(MessageDispatcher.ROUTE_PARAM_REGION_TYPE,
  					getSipSession().getRegionInternal().getType().toString());
  		}
  		sipURI.setParameter(MessageDispatcher.ROUTE_PARAM_PREV_APPLICATION_NAME,
  				applicationName);
  		sipURI.setParameter(MessageDispatcher.ROUTE_PARAM_PREV_APP_ID,
  				applicationSessionId);
  		final javax.sip.address.Address routeAddress =
  			SipFactoryImpl.addressFactory.createAddress(sipURI);
  		final RouteHeader routeHeader =
  			SipFactoryImpl.headerFactory.createRouteHeader(routeAddress);
  		request.addFirst(routeHeader);
  		// adding the application router info to avoid calling the AppRouter twice
  		// See Issue 791 : http://code.google.com/p/mobicents/issues/detail?id=791
  		final MobicentsSipSession session = getSipSession();
  		session.setNextSipApplicationRouterInfo(routerInfo);
  	}
docs: Add a route header to route back to the container
  @param applicationName the application name that was chosen by the AR to route the request
  @throws ParseException
  @throws SipException
  @throws NullPointerException