if (!receiveCurrency.equals(currencyBase) && receiveCurrency.equals(security.getCurrency())) {
spot = 1. / spot;
}
final YieldAndDiscountCurve payCurve = (YieldAndDiscountCurve) payCurveObject;
final YieldAndDiscountCurve receiveCurve = (YieldAndDiscountCurve) receiveCurveObject;
final SimpleFXFutureDataBundle data = new SimpleFXFutureDataBundle(payCurve, receiveCurve, spot);
final SimpleInstrument instrument = security.accept(CONVERTER).toDerivative(now);
final CurrencyAmount pv = instrument.accept(CALCULATOR, data);
final ValueProperties properties = createValueProperties()
.with(ValuePropertyNames.PAY_CURVE, _payCurveName)
.with(ValuePropertyNames.RECEIVE_CURVE, _receiveCurveName)