{
private static final Jsf JSF_QUALIFIER = DefaultAnnotation.of(Jsf.class);
public static void tryToHandleSecurityViolation(RuntimeException runtimeException)
{
AccessDeniedException exception = extractException(runtimeException);
if(exception == null)
{
throw runtimeException;
}
Class<? extends ViewConfig> errorView = null;
Class<? extends ViewConfig> inlineErrorView = exception.getErrorView();
if(inlineErrorView != null && !DefaultErrorView.class.getName().equals(inlineErrorView.getName()))
{
errorView = inlineErrorView;
}