protected void invokeLocally() throws ClusteredInvocationException {
String oldRequestedSessionId = router.replaceRoutingInfoInRequestedSessionId(request);
try {
next.invoke(request, response);
} catch (IOException e) {
throw new ClusteredInvocationException(e);
} catch (ServletException e) {
throw new ClusteredInvocationException(e);
} finally {
request.setRequestedSessionId(oldRequestedSessionId);
}
router.writeSessionIdWithRoutingInfo(request, response);