code: private void setExceptions(ProjectCalendar mpxjCalendar, Calendars gpCalendar)
     {
        List<net.sf.mpxj.ganttproject.schema.Date> dates = gpCalendar.getDate();
        for (net.sf.mpxj.ganttproject.schema.Date date : dates)
        {
           addException(mpxjCalendar, date);
        }
     }
docs: Add exceptions to the calendar.
  
  @param mpxjCalendar MPXJ calendar
  @param gpCalendar GanttProject calendar