while (iterator.hasNext())
{
Throwable throwable = iterator.next().getContext().getException();
Throwable rootCause = getRootCause(throwable);
ExceptionToCatchEvent event = new ExceptionToCatchEvent(rootCause, exceptionQualifier);
beanManager.fireEvent(event);
if (event.isHandled())
{
iterator.remove();
}
// a handle method might redirect and set responseComplete