Added a findByCode(PeriodCode) method in PeriodService