InfoExecutionPeriod nextInfoExecutionPeriod = getNextExecutionPeriod(request);
final String language = getLocaleLanguageFromRequest(request); getInfoDegreeCurricularPlan(request, degreeOID, language);
    public ActionForward listClasses(ActionMapping mapping, ActionForm actionForm,            HttpServletRequest request, HttpServletResponse response) throws Exception {        Integer degreeOID = new Integer(request.getParameter("degreeOID"));        request.setAttribute("degreeID", degreeOID);        InfoExecutionPeriod nextInfoExecutionPeriod = getNextExecutionPeriod(request);        List classViewsForCurrentAndPreviousPeriods = null;        List classViewsForCurrentAndNextPeriods = null;        if (nextInfoExecutionPeriod == null || nextInfoExecutionPeriod.getState().equals(PeriodState.NOT_OPEN)) {            classViewsForCurrentAndPreviousPeriods = getClassViewsForCurrentAndPreviousPeriods(request,                    degreeOID);        } else {            classViewsForCurrentAndNextPeriods = getClassViewsForCurrentAndNextPeriods(request,                    degreeOID);        }        String language = getLocaleLanguageFromRequest(request);        getInfoDegreeCurricularPlan(request, degreeOID,language);        InfoExecutionPeriod previouseInfoExecutionPeriod = getPreviouseExecutionPeriod(request);        //organizeClassViews(request, classViewsForCurrentAndPreviousPeriods, previouseInfoExecutionPeriod);        if (nextInfoExecutionPeriod == null || nextInfoExecutionPeriod.getState().equals(PeriodState.NOT_OPEN)) {            organizeClassViewsNext(request, classViewsForCurrentAndPreviousPeriods, previouseInfoExecutionPeriod);        } else {            organizeClassViewsNext(request, classViewsForCurrentAndNextPeriods, nextInfoExecutionPeriod);        }        return mapping.findForward("show-classes-list");    }