@SuppressWarnings("unused")
public InstrumentDerivative convert(final SwaptionSecurity security, final InstrumentDefinition<?> definition, final ZonedDateTime now, final String[] curveNames,
final HistoricalTimeSeriesSource dataSource) {
if (definition instanceof SwaptionCashFixedIborDefinition) {
final SwaptionCashFixedIborDefinition cashSettled = (SwaptionCashFixedIborDefinition) definition;
final SwapSecurity swapSecurity = null; //TODO
//final DoubleTimeSeries<ZonedDateTime> swapFixingSeries = _swapConverter.convert(swapSecurity, definition, now, curveNames, dataSource);
//return cashSettled.toDerivative(now, new DoubleTimeSeries[] {swapFixingTS}, curveNames);
}
if (definition instanceof SwaptionPhysicalFixedIborDefinition) {
final SwaptionPhysicalFixedIborDefinition physicallySettled = (SwaptionPhysicalFixedIborDefinition) definition;
final SwapSecurity swapSecurity = null; //TODO
//final DoubleTimeSeries<ZonedDateTime> swapFixingSeries = _swapConverter.convert(swapSecurity, definition, now, curveNames, dataSource);
//return physicallySettled.toDerivative(now, new DoubleTimeSeries[] {swapFixingTS}, curveNames);
}
throw new OpenGammaRuntimeException("This converter can only handle SwaptionCashFixedIborDefinition and SwaptionPhysicalFixedIborDefinition");
}