public class NachoCalendarFactory
{
public static HoliDayModel brazilianHolidayModel(int year)
{
HoliDayModel model = new HoliDayModel();
Set<Holiday> set = ReflectionUtils.getEnumInstances(Holiday.class);
for (Holiday holiday: set)
{
System.out.print(holiday + " ");
HoliDay h = new DefaultHoliDay();
h.setName(holiday.displayName());
System.out.println(holiday.get(year));
h.setDate(holiday.get(year));
h.setRecurrent(true);
model.addHoliDay(h);
}
return model;
}