MDL-18375 calendar: implemented the usage of the recently introduced automatic class loading