final SABRInterestRateDataBundle sabrBundle = (SABRInterestRateDataBundle) curves;
if (sabrBundle.getSABRParameter() instanceof SABRInterestRateCorrelationParameters) {
final SABRInterestRateCorrelationParameters sabrCorrelation = (SABRInterestRateCorrelationParameters) sabrBundle.getSABRParameter();
final CapFloorCMSSpreadSABRBinormalMethod method = new CapFloorCMSSpreadSABRBinormalMethod(sabrCorrelation.getCorrelation(), CapFloorCMSSABRReplicationMethod.getDefaultInstance(),
CouponCMSSABRReplicationMethod.getInstance());
return method.presentValueCurveSensitivity(payment, sabrBundle).getSensitivities();
}
}
throw new UnsupportedOperationException("The PresentValueCurveSensitivitySABRCalculator visitor visitCapFloorCMSSpread requires a SABRInterestRateDataBundle with correlation as data.");
}