}
private void processExceptionMapperEvents() {
final Queue<RequestEvent> eventQueue = monitoringEventListener.getExceptionMapperEvents();
while (!eventQueue.isEmpty()) {
final RequestEvent event = eventQueue.remove();
final ExceptionMapperStatisticsImpl.Builder mapperStats = statisticsBuilder.getExceptionMapperStatisticsBuilder();
if (event.getExceptionMapper() != null) {
mapperStats.addExceptionMapperExecution(event.getExceptionMapper().getClass(), 1);
}
mapperStats.addMapping(event.isResponseSuccessfullyMapped(), 1);
}
}