request.setAttribute("firstAttends", firstAttends);
    public ActionForward prepare(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws FenixFilterException,            FenixServiceException {        final Object[] args = { ExecutionPeriod.class };        final List<ExecutionPeriod> executionPeriods = (List<ExecutionPeriod>) executeService(request, "ReadAllDomainObjects", args);        final Set<ExecutionPeriod> sortedExecutionPeriods = new TreeSet<ExecutionPeriod>(executionPeriods);        request.setAttribute("executionPeriods", sortedExecutionPeriods);        final DynaActionForm dynaActionForm = (DynaActionForm) form;        final Integer executionPeriodID = getExecutionPeriodID(dynaActionForm);        final ExecutionPeriod selectedExecutionPeriod = findExecutionPeriod(executionPeriods, executionPeriodID);        request.setAttribute("selectedExecutionPeriod", selectedExecutionPeriod);        dynaActionForm.set("executionPeriodID", selectedExecutionPeriod.getIdInternal().toString());        final Attends firstAttends = findFirstAttends(request, selectedExecutionPeriod);        if (firstAttends != null) {            final Interval executionPeriodInterval = firstAttends.getWeeklyWorkLoadInterval();            final WeeklyWorkLoadView weeklyWorkLoadView = new WeeklyWorkLoadView(executionPeriodInterval);            request.setAttribute("weeklyWorkLoadView", weeklyWorkLoadView);            final Collection<Attends> attends = new ArrayList<Attends>();            request.setAttribute("attends", attends);            for (final Student student : getUserView(request).getPerson().getStudents()) {                for (final Attends attend : student.getOrderedAttends()) {                    final ExecutionCourse executionCourse = attend.getDisciplinaExecucao();                    if (executionCourse.getExecutionPeriod() == selectedExecutionPeriod) {                        weeklyWorkLoadView.add(attend);                        attends.add(attend);                    }                }            }            request.setAttribute("weeklyWorkLoadBean", new WeeklyWorkLoadBean());        }        return mapping.findForward("showWeeklyWorkLoad");    }