*/
if (alertDefinition.getConditions().size() == 1) {
alertDefinition.setConditionExpression(BooleanExpression.ANY);
}
oldAlertDefinition.update(alertDefinition, resetMatching);
if (LOG.isDebugEnabled()) {
LOG.debug("Updating: " + oldAlertDefinition);
for (AlertCondition nextCondition : oldAlertDefinition.getConditions()) {
LOG.debug("Condition: " + nextCondition);
}