// once here to check for a targeted request and once in the Factory
// when we actually create the ss/sas for the request
// maybe we can refactor a bit, so that if we have a targeted
// request we already set the SAS that we found on the request somehow...
String uriEncodedSasId = null;
Address routeAddr = request.getInitialPoppedRoute();
if (routeAddr != null) {
uriEncodedSasId = UriUtil.getAndDecodeParameter(
routeAddr.getURI(), URIImpl.SASID_PARAM);
}
if (uriEncodedSasId == null)
uriEncodedSasId = UriUtil.getAndDecodeParameter(request.getRequestURI(), URIImpl.SASID_PARAM);
if (uriEncodedSasId != null) {
appName = SipApplicationSessionUtil.getApplicationName(uriEncodedSasId);