weekTradingDays.add(new WeekTradingDay(Calendar.FRIDAY, tdBean1));
bean.setWeekTradingDays(weekTradingDays);
Set<SpecificTradingDay> specialTradingDays = new HashSet<SpecificTradingDay>();
TradingDayBean stdBean1 = new TradingDayBean();
stdBean1.setTradingPeriods(new TradingPeriodBean[] { tpBeanMorning });
specialTradingDays.add(new SpecificTradingDay("20121224", stdBean1));
bean.setSpecialTradingDays(specialTradingDays);
bean.setIncludeAfterHours(true);
bean.setExchanges(new String[] { "GLOBEX", "CBOT" } );
JAXBContext context = JAXBContext.newInstance(TradingCalendarFactoryBean.class, WeekTradingDay.class, SpecificTradingDay.class);