throws Exception {
// Setup the Replacement proxy
LaunchSession launchSession = LaunchSessionFactory.getInstance()
.getLaunchSession(request.getParameter(LaunchSession.LAUNCH_ID));
launchSession.checkAccessRights(null, getSessionInfo(request));
ReplacementProxyWebForward f = (ReplacementProxyWebForward) launchSession.getResource();
VariableReplacement r = new VariableReplacement();
r.setServletRequest(request);
r.setLaunchSession(launchSession);
String destinationURL = r.replace(f.getDestinationURL());
CoreEvent evt = new ResourceAccessEvent(this,
WebForwardEventConstants.WEB_FORWARD_STARTED,
f,
launchSession.getPolicy(),
this.getSessionInfo(request),
CoreEvent.STATE_SUCCESSFUL).addAttribute(WebForwardEventConstants.EVENT_ATTR_WEB_FORWARD_TYPE,
((WebForwardTypeItem) WebForwardTypes.WEB_FORWARD_TYPES.get(f.getType())).getName())
.addAttribute(WebForwardEventConstants.EVENT_ATTR_WEB_FORWARD_URL, destinationURL);
CoreServlet.getServlet().fireCoreEvent(evt);
response.sendRedirect("/replacementProxyEngine?" + LaunchSession.LONG_LAUNCH_ID