code: @Override
      public List<Metric> transform(QueryContext context, List<Metric> metrics) {
          SystemAssert.requireArgument(metrics != null, "Cannot transform null metrics.");
          
          if (metrics.isEmpty()) {
              return metrics;
          }
          
          MetricDistiller distiller = new MetricDistiller();
          distiller.distill(metrics);
  
          String newMetricName = distiller.getMetric() == null ? TransformFactory.DEFAULT_METRIC_NAME : distiller.getMetric();
          Metric newMetric = new Metric(getResultScopeName(), newMetricName);
  
          newMetric.setDisplayName(distiller.getDisplayName());
          newMetric.setUnits(distiller.getUnits());
          newMetric.setTags(distiller.getTags());
          newMetric.setDatapoints(_collate(metrics));
  
          return Arrays.asList(newMetric);
      }
docs: ~ Methods **************************************************************************************************************************************