code: protected boolean showMoreEntries(Calendar nextDate, int previousOccurrences) {
  
          switch (getSerialEndType()) {
              case DATE:
                  boolean moreByDate = nextDate.getTimeInMillis() < m_endMillis;
                  boolean moreByOccurrences = previousOccurrences < CmsSerialDateUtil.getMaxEvents();
                  if (moreByDate && !moreByOccurrences) {
                      m_hasTooManyOccurrences = Boolean.TRUE;
                  }
                  return moreByDate && moreByOccurrences;
              case TIMES:
              case SINGLE:
                  return previousOccurrences < getOccurrences();
              default:
                  throw new IllegalArgumentException();
          }
      }
docs: Check if the provided date or any date after it are part of the series.
  @param nextDate the current date to check.
  @param previousOccurrences the number of events of the series that took place before the date to check.
  @return <code>true</code> if more dates (including the provided one) could be in the series, <code>false</code> otherwise.