{
final List childExceptions = Arrays.asList(errorHandler.getErrors());
errorHandler.clearErrors();
if (failOnError)
{
throw new ReportEventException("Failed to dispatch an event.", childExceptions);
}
else
{
final ReportEventException exception =
new ReportEventException("Failed to dispatch an event.", childExceptions);
AbstractReportProcessor.logger.error("Failed to dispatch an event.", exception);
}
}
if (state.isArtifcialState())