code: private void processCalendarExceptions(ProjectCalendar calendar, Record root)
     {
        // Retrieve exceptions
        Record exceptions = root.getChild("Exceptions");
        if (exceptions != null)
        {
           for (Record exception : exceptions.getChildren())
           {
              long daysFromEpoch = Integer.parseInt(exception.getValue().split("\\|")[1]);
              Date startEx = DateHelper.getDateFromLong(EXCEPTION_EPOCH + (daysFromEpoch * DateHelper.MS_PER_DAY));
  
              ProjectCalendarException pce = calendar.addCalendarException(startEx, startEx);
              for (Record exceptionHours : exception.getChildren())
              {
                 addHours(pce, exceptionHours);
              }
           }
        }
     }
docs: Process calendar exceptions.
  
  @param calendar project calendar
  @param root calendar data