}
CalendarManager calendarManager = CalendarManagerFactory.getInstance().getCalendarManager();
// check if the calendar exists (calendars are only persisted when an event is created)
if (calendarManager.calendarExists(calendarType, calendarID)) {
// read and return the calendar file
return calendarManager.readCalendar(calendarType, calendarID);
} else {
// return an empty calendar file
return new Calendar();