@Override
public void init(final FunctionCompilationContext context) {
final SecuritySource securitySource = OpenGammaCompilationContext.getSecuritySource(context);
final HolidaySource holidaySource = OpenGammaCompilationContext.getHolidaySource(context);
final ConventionBundleSource conventionSource = OpenGammaCompilationContext.getConventionBundleSource(context);
final HistoricalTimeSeriesResolver timeSeriesResolver = OpenGammaCompilationContext.getHistoricalTimeSeriesResolver(context);
final RegionSource regionSource = OpenGammaCompilationContext.getRegionSource(context);
final SwapSecurityConverterDeprecated swapConverter = new SwapSecurityConverterDeprecated(holidaySource, conventionSource, regionSource, false);
_visitor = new SwaptionSecurityConverterDeprecated(securitySource, swapConverter);
_definitionConverter = new FixedIncomeConverterDataProvider(conventionSource, timeSeriesResolver);