code: public static AggregationMetric BuildAggregationMetric(String string, TableDefinition definition) {
          ArrayList<AggregationMetric> metrics = BuildAggregationMetrics(string, definition);
          return metrics.get(0);
      }
docs: For compatibility : now all must use BuildAggregationMetrics