LPS-45397 Rewriting CalendarResource calendars retrieving code