if (context.getMeasure(metric) != null) {
return;
}
formulaContext.setDecoratorContext(context);
FormulaData data = new DefaultFormulaData(context);
Measure measure = metric.getFormula().calculate(data, formulaContext);
if (measure != null) {
context.saveMeasure(measure);
}
}