}
@Override
public Set<ComputedValue> execute(final FunctionExecutionContext executionContext, final FunctionInputs inputs,
final ComputationTarget target, final Set<ValueRequirement> desiredValues) {
final ValueRequirement desiredValue = desiredValues.iterator().next();
final String curveName = desiredValue.getConstraint(ValuePropertyNames.CURVE);
final String curveCurrency = desiredValue.getConstraint(ValuePropertyNames.CURVE_CURRENCY);
final String curveCalculationConfig = desiredValue.getConstraint(ValuePropertyNames.CURVE_CALCULATION_CONFIG);
final ComputationTargetSpecification specification = target.toSpecification();
final Object value = inputs.getValue(new ValueRequirement(YCNS_REQUIREMENT, specification));
if (!(value instanceof LabelledMatrix1D)) {
throw new OpenGammaRuntimeException("Yield Curve Node Sensitivities result was not of type LabelledMatrix1D");
}
final DoubleLabelledMatrix1D ycns = (DoubleLabelledMatrix1D) value;
final double result = sum(ycns.getValues());