I don't like such solution. Vote for change MetricAggregator interface(add method getDisplayName() ).