class ImmutableHolidayCalendar implements HolidayCalendar, ImmutableBean, Serializable {

  @Override
  public LocalDate nextSameOrLastInMonth(LocalDate date) {
    try {
      // day-of-month: no alteration as method is one-based and same is valid
      return shiftNextSameLast(date);

    } catch (ArrayIndexOutOfBoundsException ex) {
      return HolidayCalendar.super.nextSameOrLastInMonth(date);
    }
  }

    ImmutableHolidayCalendar(HolidayCalendarId id, int weekendDays, int startYear, int[] lookup, boolean flag);
  private  ImmutableHolidayCalendar(
      HolidayCalendarId id,
      int weekends,
      int startYear,
      int[] lookup);

}