for (AlertNotification persistedNotification : persistedNotifications) {
//ignore the ids on the notifications as they may vary if we are comparing parent alert def with its children
//it's enough for us they they are semantically the same.
if (newNotification.getSenderName().equals(persistedNotification.getSenderName())
&& newNotification.equalsData(persistedNotification)) {
it.remove();
break;
}
}
}