DefaultMeasure newMeasure = new DefaultMeasure(null);
String moduleKey = value.getString();
if (moduleKey != null) {
String relativePath = value.getString();
InputFile f = inputPathCache.getFile(moduleKey, relativePath);
newMeasure.onFile(f);
} else {
newMeasure.onProject();
}
Metric m = metricFinder.findByKey(value.getString());
newMeasure.forMetric(m);