try {
String uniqueId = host.substring(0, idx);
launchSession = LaunchSessionFactory.getInstance().getLaunchSession(session, uniqueId);
if (launchSession != null) {
wf = (ReverseProxyWebForward) launchSession.getResource();
launchSession.checkAccessRights(null, session);
if (!((ReverseProxyWebForward) wf).getActiveDNS()) {
throw new Exception("Appears to be an active DNS request but the associated web forward is not active DNS. Is someone trying something funny???");
}
LogonControllerFactory.getInstance().addCookies(request, response, session.getLogonTicket(), session);
return handleReverseProxy(pathInContext, pathParams, request, response, launchSession);