code: protected Calendar getCalendarInstance(final Date date, final boolean lenient) {
          Calendar cal = Dates.getCalendarInstance(date);
          // A week should have at least 4 days to be considered as such per RFC5545
          cal.setMinimalDaysInFirstWeek(4);
          cal.setFirstDayOfWeek(calendarWeekStartDay);
          cal.setLenient(lenient);
          cal.setTime(date);
  
          return cal;
      }
docs: Construct a Calendar object and sets the time.
  
  @param date
  @param lenient
  @return