Date curDate = cal.getTime();
List<CalendarEvent> evts = (List<CalendarEvent>) dayMap.get(sdfKey.format(curDate));
if (evts != null && !evts.isEmpty()) {
Collections.sort(evts, getDefaultEndDateComparator());
for (CalendarEvent ce : evts)
wh.write(render.drawDay(self, ce, self.getCalendarEventId(ce)));
}
wh.write("</div></td>");
cal.add(Calendar.DAY_OF_WEEK, 1);
}