}
@Override
public ActionForward createNewProcess(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws FenixServiceException {
SecondCycleIndividualCandidacyProcessBean bean = getIndividualCandidacyProcessBean();
boolean isValid = hasInvalidViewState();
if (!isValid) {
invalidateDocumentFileRelatedViewStates();
request.setAttribute(getIndividualCandidacyProcessBeanName(), getIndividualCandidacyProcessBean());
return mapping.findForward("fill-candidacy-information");
}
boolean hasSelectedDegrees = !bean.getSelectedDegreeList().isEmpty();
if (!hasSelectedDegrees) {
invalidateDocumentFileRelatedViewStates();
request.setAttribute(getIndividualCandidacyProcessBeanName(), getIndividualCandidacyProcessBean());
addActionMessage(request, "error.SecondCycleIndividualCandidacyProcessBean.must.select.at.least.one.degree");
return mapping.findForward("fill-candidacy-information");