if (checkMissing(executionContext, latestDataPoint, ageLimit)) {
value = MissingInput.MISSING_MARKET_DATA;
} else {
final String adjusterString = desiredValue.getConstraint(HistoricalTimeSeriesFunctionUtils.ADJUST_PROPERTY);
final HistoricalTimeSeriesAdjustment htsa = HistoricalTimeSeriesAdjustment.parse(adjusterString);
value = htsa.adjust(latestDataPoint.getSecond());
}
return Collections.singleton(new ComputedValue(new ValueSpecification(desiredValue.getValueName(), target.toSpecification(), desiredValue.getConstraints()), value));
}
// TODO: reverse logic here to be checkAvailable()