final boolean[] onCycleSwapDates = new boolean[swapDates.length];
final ZonedDateTime[] previousSwapDates = new ZonedDateTime[swapDates.length];
for (int i = 0; i < numSwaps; i++) {
unadjustedSwapDates[i] = swapDates[i];
adjustedSwapDates[i] = swapMaturities.businessDayAdjustDate(swapDates[i], calendar, businessdayAdjustmentConvention);
}
int numIntervals = 0;
int extraDays = 0;