protected void addAlertNotice(AlertNoticeEntity notice) {
    if (null == alertNotices) {
      alertNotices = new ArrayList<>();
    }

    alertNotices.add(notice);
  }
Adds the specified notice to the notices that have been sent out for this
target.

@param notice
         the notice.
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertTargetEntity.java