public ActionForward prepareAddAttends(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
HttpServletResponse response) {
final Registration registration = getAndSetRegistration(request);
request.setAttribute("registration", registration);
AddAttendsBean addAttendsBean = (AddAttendsBean) getObjectFromViewState("addAttendsBean");
if (addAttendsBean == null) {
addAttendsBean = new AddAttendsBean();
final ExecutionSemester executionPeriod = ExecutionSemester.readActualExecutionSemester();
final ExecutionYear executionYear = executionPeriod.getExecutionYear();
final Degree degree = registration.getDegree();
final ExecutionDegree executionDegree = getExecutionDegree(executionYear, degree);
addAttendsBean.setExecutionPeriod(executionPeriod);
addAttendsBean.setExecutionYear(executionYear);
addAttendsBean.setExecutionDegree(executionDegree);
}
request.setAttribute("addAttendsBean", addAttendsBean);
RenderUtils.invalidateViewState();