@Override
public void handle() throws FacesException {
final Iterator<ExceptionQueuedEvent> iterator = getUnhandledExceptionQueuedEvents().iterator();
while (iterator.hasNext()) {
final ExceptionQueuedEvent event = iterator.next();
final ExceptionQueuedEventContext context = (ExceptionQueuedEventContext) event.getSource();
final Throwable cause = ExceptionUtils.getRootCause(context.getException());
if (cause instanceof ErrorTestException) {
final FacesContext facesContext = FacesContext.getCurrentInstance();
final NavigationHandler nav = facesContext.getApplication().getNavigationHandler();
try {