Use CalendarsManager.
Catch exceptions.