code: private void writeDayTypes(Calendars calendars)
     {
        DayTypes dayTypes = m_factory.createDayTypes();
        calendars.setDayTypes(dayTypes);
        List<DayType> typeList = dayTypes.getDayType();
  
        DayType dayType = m_factory.createDayType();
        typeList.add(dayType);
        dayType.setId("0");
        dayType.setName("Working");
        dayType.setDescription("A default working day");
  
        dayType = m_factory.createDayType();
        typeList.add(dayType);
        dayType.setId("1");
        dayType.setName("Nonworking");
        dayType.setDescription("A default non working day");
  
        dayType = m_factory.createDayType();
        typeList.add(dayType);
        dayType.setId("2");
        dayType.setName("Use base");
        dayType.setDescription("Use day from base calendar");
     }
docs: Write the standard set of day types.
  
  @param calendars parent collection of calendars