public static Map<String, AlertDefinitionSummary> generateEmptySummary(Long definitionId, String definitionName) {
    Map<String, AlertDefinitionSummary> summaries = new HashMap<>();

    AlertDefinitionSummary groupSummaryInfo = new AlertDefinitionSummary();
    groupSummaryInfo.Id = definitionId;
    groupSummaryInfo.Name = definitionName;

    summaries.put(definitionName, groupSummaryInfo);

    return summaries;
  }
{@inheritDoc}
<p/>
This will iterate over all of the nodes in the result tree and combine
their {@link AlertResourceProvider#ALERT_STATE} into a single summary
structure.
ambari-server/src/main/java/org/apache/ambari/server/api/query/render/AlertSummaryGroupedRenderer.java