if (unauthorized instanceof OctopusUnauthorizedException) {
externalContext.getFlash().putNow("interceptionInfo", ((OctopusUnauthorizedException) unauthorized ) .getExceptionPointInfo());
}
try {
OctopusConfig config = CodiUtils.getContextualReferenceByClass(OctopusConfig.class);
externalContext.redirect(externalContext.getRequestContextPath() + config.getUnauthorizedExceptionPage());
} catch (IOException e) {
LOGGER.error("Redirect to unauthorized page failed", e);
}
facesContext.renderResponse();