final int conventionalMonthLag = indexLeg.getConventionalIndexationLag();
final int quotationMonthLag = indexLeg.getQuotationIndexationLag();
final boolean exchangeNotional = security.isExchangeInitialNotional() && security.isExchangeFinalNotional();
final double notional = ((InterestRateNotional) fixedLeg.getNotional()).getAmount();
if (isMonthly) {
return SwapFixedInflationYearOnYearDefinition.fromMonthly(priceIndex, settlementDate, paymentPeriod, (int) (maturityTenor.toTotalMonths() / 12), fixedRate,
notional, isPayer, businessDayConvention, calendar, isEOM, fixedLegDayCount, conventionalMonthLag, quotationMonthLag, exchangeNotional);
}
return SwapFixedInflationYearOnYearDefinition.fromInterpolation(priceIndex, settlementDate, paymentPeriod, maturityTenor, fixedRate,
notional, isPayer, businessDayConvention, calendar, isEOM, fixedLegDayCount, conventionalMonthLag, quotationMonthLag, exchangeNotional);
}