if (underlyingType != UnderlyingType.SPOT_PRICE) {
throw new OpenGammaRuntimeException("Have hard-coded to only use delta; should not have anything with " + underlyingType + " as the underlying type");
}
tsReturns.put(underlyingType, returnCalculator.evaluate(sampledTS));
}
dataBundleArray[0] = new SensitivityAndReturnDataBundle(sensitivity, value, tsReturns);
final DoubleTimeSeries<?> result = PNL_CALCULATOR.evaluate(dataBundleArray);
// Please see http://jira.opengamma.com/browse/PLAT-2330 for information about the PROPERTY_PNL_CONTRIBUTIONS constant
final ValueProperties properties = createValueProperties()
.with(ValuePropertyNames.CURRENCY, currency)
.with(ValuePropertyNames.SAMPLING_PERIOD, samplingPeriodName.iterator().next())