code: private void populateCalendar(Record record, ProjectCalendar calendar, boolean isBaseCalendar)
     {
        if (isBaseCalendar == true)
        {
           calendar.setName(record.getString(0));
        }
        else
        {
           calendar.setParent(m_projectFile.getCalendarByName(record.getString(0)));
        }
  
        calendar.setWorkingDay(Day.SUNDAY, DayType.getInstance(record.getInteger(1)));
        calendar.setWorkingDay(Day.MONDAY, DayType.getInstance(record.getInteger(2)));
        calendar.setWorkingDay(Day.TUESDAY, DayType.getInstance(record.getInteger(3)));
        calendar.setWorkingDay(Day.WEDNESDAY, DayType.getInstance(record.getInteger(4)));
        calendar.setWorkingDay(Day.THURSDAY, DayType.getInstance(record.getInteger(5)));
        calendar.setWorkingDay(Day.FRIDAY, DayType.getInstance(record.getInteger(6)));
        calendar.setWorkingDay(Day.SATURDAY, DayType.getInstance(record.getInteger(7)));
  
        m_eventManager.fireCalendarReadEvent(calendar);
     }
docs: Populates a calendar instance.
  
  @param record MPX record
  @param calendar calendar instance
  @param isBaseCalendar true if this is a base calendar