@Override
public MultipleCurrencyMulticurveSensitivity visitCapFloorCMSSpread(final CapFloorCMSSpread payment, final SABRSwaptionProviderInterface sabr) {
if (sabr.getSABRParameter() instanceof SABRInterestRateCorrelationParameters) {
// TODO: improve correlation data handling
final SABRInterestRateCorrelationParameters sabrCorrelation = (SABRInterestRateCorrelationParameters) sabr.getSABRParameter();
final CapFloorCMSSpreadSABRBinormalMethod method = new CapFloorCMSSpreadSABRBinormalMethod(sabrCorrelation.getCorrelation(), _methodExtraCMSCap, _methodExtraCMSCpn);
return method.presentValueCurveSensitivity(payment, sabr);
}
throw new UnsupportedOperationException(
"The PresentValueCurveSensitivitySABRSwaptionRightExtrapolationCalculator visitor visitCapFloorCMSSpread requires a SABRInterestRateCorrelationParameters as data.");
}