if (oldStatus != newStatus && statList.size() >= 1) {
//Status have changed, store new triggeredAlert and send email
logger.info("Alert status changed: " + newStatus.getStatusName() + " num plugins: " + alert.getSelectedEmailSenderList().size());
for (String alertPluginId : alert.getSelectedEmailSenderList()) {
AlertRecipient alertRecipient = dbPlugin.getAlertRecipientDao().getAlertRecipient(alert.getAccountName(), alertPluginId);
List<String> recipients = new ArrayList<>();
for (String idObject : alertRecipient.getRecipients()) {
recipients.add(idObject);
}
logger.info("Sending alert through plugin: " + alertPluginId);