final Map<String, Aggregation> asMap() {
      if (aggregationsAsMap == null) {
        Map<String, Aggregation> map = new LinkedHashMap<>(aggregations.size());
        for (Aggregation aggregation : aggregations) {
          map.put(aggregation.getName(), aggregation);
        }
        this.aggregationsAsMap = Collections.unmodifiableMap(map);
      }
      return aggregationsAsMap;
    }
Returns the {@link Aggregation}s keyed by aggregation name. Lazy init.
criteria/elasticsearch/src/org/immutables/criteria/elasticsearch/Json.java