code: private void populateCalendarException(Record record, ProjectCalendar calendar) throws MPXJException
     {
        Date fromDate = record.getDate(0);
        Date toDate = record.getDate(1);
        boolean working = record.getNumericBoolean(2);
  
        // I have found an example MPX file where a single day exception is expressed with just the start date set.
        // If we find this for we assume that the end date is the same as the start date.
        if (fromDate != null && toDate == null)
        {
           toDate = fromDate;
        }
  
        ProjectCalendarException exception = calendar.addCalendarException(fromDate, toDate);
        if (working)
        {
           addExceptionRange(exception, record.getTime(3), record.getTime(4));
           addExceptionRange(exception, record.getTime(5), record.getTime(6));
           addExceptionRange(exception, record.getTime(7), record.getTime(8));
        }
     }
docs: Populates a calendar exception instance.
  
  @param record MPX record
  @param calendar calendar to which the exception will be added
  @throws MPXJException