if (event.getFlow().is(ServletRewriteFlow.FORWARD))
{
String dispatchResource = ((HttpInboundServletRewrite) event).getDispatchResource();
facesContext.getExternalContext().dispatch(dispatchResource);
}
facesContext.responseComplete();
}
else if (event.getFlow().is(ServletRewriteFlow.INCLUDE))
{
throw new IllegalStateException(
"Cannot issue INCLUDE directive within JSF lifecycle. Not supported.");