@SuppressWarnings("unchecked")
@Override
public void setEntity(EntityLocal entity) {
super.setEntity(entity);
if (suppressDuplicates==null) {
suppressDuplicates = true;
}
Map<String, ?> notifyOfInitialValue = ImmutableMap.of("notifyOfInitialValue", Boolean.TRUE);
subscriptions().subscribe(notifyOfInitialValue, entity, SERVICE_PROBLEMS, this);
subscriptions().subscribe(notifyOfInitialValue, entity, SERVICE_UP, this);
subscriptions().subscribe(notifyOfInitialValue, entity, SERVICE_STATE_EXPECTED, this);
highlightTriggers(MutableList.of(SERVICE_PROBLEMS, SERVICE_UP, SERVICE_STATE_EXPECTED), null);
}