@Override
public ActionForward execute(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
HttpServletResponse response) throws Exception {
final DegreeCurricularPlan selectedDegreeCurricularPlan = getSelectedDegreeCurricularPlan(request);
if (selectedDegreeCurricularPlan == null) {
final Set<DegreeType> degreeTypes = new HashSet<DegreeType>();
degreeTypes.add(DegreeType.BOLONHA_DEGREE);
degreeTypes.add(DegreeType.BOLONHA_MASTER_DEGREE);
degreeTypes.add(DegreeType.BOLONHA_INTEGRATED_MASTER_DEGREE);
request.setAttribute("degreeCurricularPlans", selectedDegreeCurricularPlan.getDegreeCurricularPlans(degreeTypes));
} else {
request.setAttribute("selectedDegreeCurricularPlan", selectedDegreeCurricularPlan);
}
final DegreeCurricularPlan degreeCurricularPlan = getDegreeCurricularPlan(request);
request.setAttribute("degreeCurricularPlan",
degreeCurricularPlan != null ? degreeCurricularPlan : selectedDegreeCurricularPlan);
return super.execute(mapping, actionForm, request, response);
}