if (run.getSnapshotMode().equals(SnapshotMode.WRITE_THROUGH)) {
addComputedValuesToMarketDataInTransaction(run.getMarketData().getObjectId(), resultModel.getAllMarketData());
}
for (String calcConfigName : resultModel.getCalculationConfigurationNames()) {
ViewCalculationResultModel viewCalculationResultModel = resultModel.getCalculationResult(calcConfigName);
final Set<ComputationTargetSpecification> successfulTargets = newHashSet();
final Set<ComputationTargetSpecification> failedTargets = newHashSet();
List<SqlParameterSource> targetProperties = newArrayList();
List<SqlParameterSource> successes = newArrayList();
List<SqlParameterSource> failures = newArrayList();
List<SqlParameterSource> failureReasons = newArrayList();
Instant evalInstant = Instant.now();
long calcConfId = _calculationConfigurations.get(calcConfigName);
for (final ComputationTargetSpecification targetSpec : viewCalculationResultModel.getAllTargets()) {
final long computationTargetId = _computationTargets.get(targetSpec);
boolean specFailures = false;
for (final ComputedValueResult computedValue : viewCalculationResultModel.getAllValues(targetSpec)) {
ResultConverter<Object> resultConverter = null;
if (!(computedValue.getValue() instanceof MissingValue)) {
try {
resultConverter = (ResultConverter<Object>) _resultConverterCache.getConverter(computedValue.getValue());
} catch (IllegalArgumentException e) {