for (AlertNotification notification : notifications) {
AlertSender<?> sender = pluginManager.getAlertSenderForNotification(notification);
if (sender != null) {
AlertSenderValidationResults validation = sender.validateAndFinalizeConfiguration(subject);
notification.setConfiguration(validation.getAlertParameters());
notification.setExtraConfiguration(validation.getExtraParameters());
hasErrors = hasErrors || hasErrors(validation.getAlertParameters())
|| hasErrors(validation.getExtraParameters());
}
}
}
return !hasErrors;