@RequestMapping(value = "/schedules/{scheduleId}/periods", method = GET, headers = ACCEPT_JSON)
 @PreAuthorize("@permissionEvaluator.hasPermission(principal,'MANAGE_SCHEDULE')")
 public ResponseEntity<OpenLmisResponse> getAll(@PathVariable("scheduleId") Long scheduleId) {
   List<ProcessingPeriod> periodList = processingScheduleService.getAllPeriods(scheduleId);
   ResponseEntity<OpenLmisResponse> response = OpenLmisResponse.response(PERIODS, periodList);
   if (!periodList.isEmpty())
     response.getBody().addData(NEXT_START_DATE, periodList.get(0).getNextStartDate());
   return response;
 }