private void putUnavailablePeriodsOnRequest(HttpServletRequest request) throws Exception { Person person = getLoggedPerson(request); ExamCoordinator coordinator = person.getExamCoordinatorForGivenExecutionYear(ExecutionYear .readCurrentExecutionYear());  if (coordinator != null) { List<UnavailablePeriod> unavailablePeriods = coordinator .getUnavailablePeriodsThatCanManage(); request.setAttribute("unavailablePeriods", unavailablePeriods); } else { request.setAttribute("unavailablePeriods", new ArrayList<UnavailablePeriod>()); }
private void putUnavailablePeriodsOnRequest(HttpServletRequest request, VigilantGroup group) throws Exception { request.setAttribute("unavailablePeriods", group.getUnavailablePeriodsOfVigilantsInGroup());
    private void putUnavailablePeriodsOnRequest(HttpServletRequest request) throws Exception {        Person person = getLoggedPerson(request);        ExamCoordinator coordinator = person.getExamCoordinatorForGivenExecutionYear(ExecutionYear                .readCurrentExecutionYear());        if (coordinator != null) {            List<UnavailablePeriod> unavailablePeriods = coordinator                    .getUnavailablePeriodsThatCanManage();            request.setAttribute("unavailablePeriods", unavailablePeriods);        } else {            request.setAttribute("unavailablePeriods", new ArrayList<UnavailablePeriod>());        }    }