final Set<ComputedValue> results = Sets.newHashSetWithExpectedSize(viewResults.size() + 1);
final ComputationTargetSpecification targetSpec = target.toSpecification();
for (final Map.Entry<String, HistoricalViewEvaluationResult> viewResult : viewResults.entrySet()) {
String calcConfigName = viewResult.getKey();
HistoricalViewEvaluationResult value = viewResult.getValue();
results.add(new ComputedValue(getResultSpec(calcConfigName, targetSpec), value));
}
final HistoricalViewEvaluationMarketData viewMarketData = resultBuilder.getMarketData();
if (viewMarketData != null) {
results.add(new ComputedValue(getMarketDataResultSpec(targetSpec), viewMarketData));
}
return results;
}