this.metric = metric;
MeasureDto measure = new MeasureDto().setMetricId(metric.getId());
boolean isNewTypeMetric = metric.getKey().toLowerCase(Locale.ENGLISH).startsWith(LOWER_CASE_NEW_METRIC_PREFIX);
if (isNewTypeMetric) {
for (Integer periodIndex : periodIndexes) {
<BUG>measure.setVariation(periodIndex, 0.0d);
</BUG>
}
} else {
measure.setValue(metric.getBestValue());

this.metric = metric;
MeasureDto measure = new MeasureDto().setMetricId(metric.getId());
boolean isNewTypeMetric = metric.getKey().toLowerCase(Locale.ENGLISH).startsWith(LOWER_CASE_NEW_METRIC_PREFIX);
if (isNewTypeMetric) {
for (Integer periodIndex : periodIndexes) {
measure.setVariation(periodIndex, metric.getBestValue());
}
} else {
measure.setValue(metric.getBestValue());
