ERPublishCalendarPage calendar = (ERPublishCalendarPage) pageWithName("ERPublishCalendarPage");
calendar.setCalendarName("Release Map");
NSMutableArray releases = new NSMutableArray();
for (Enumeration e = Release.clazz.allObjects(ec).objectEnumerator(); e.hasMoreElements();) {
final Release element = (Release) e.nextElement();
ERSimpleEvent event = new ERSimpleEvent(element.dateDue(), null, element.name(), element.primaryKey());
releases.addObject(event);
}
calendar.addEventsFromArray(releases);
return calendar;
} finally {