IUserView userView = SessionUtils.getUserView(request); checkCandidacyConditions(userView, executionDegreeOID);  request.setAttribute("infoGroup", infoGroup);  String idInternal = (String) dynaActionForm.get("idInternal"); if (idInternal == null || idInternal.equals("")) { selectExecutionDegree(mapping, form, request, response);
if (executionDegreeOID != null && !executionDegreeOID.equals("")) {  IUserView userView = SessionUtils.getUserView(request); checkCandidacyConditions(userView, executionDegreeOID);  request.setAttribute("infoGroup", infoGroup);  String idInternal = (String) dynaActionForm.get("idInternal"); if (idInternal == null || idInternal.equals("")) { selectExecutionDegree(mapping, form, request, response); }
    public ActionForward prepareCandidacy(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws Exception {        InfoGroup infoGroup = fillOutFinalDegreeWorkCandidacyForm(form, request);        List infoExecutionDegrees = placeListOfExecutionDegreesInRequest(request);        setDefaultExecutionDegree(form, request, infoExecutionDegrees);        DynaActionForm dynaActionForm = (DynaActionForm) form;        String executionDegreeOID = (String) dynaActionForm.get("executionDegreeOID");        IUserView userView = SessionUtils.getUserView(request);        checkCandidacyConditions(userView, executionDegreeOID);        request.setAttribute("infoGroup", infoGroup);        String idInternal = (String) dynaActionForm.get("idInternal");        if (idInternal == null || idInternal.equals("")) {            selectExecutionDegree(mapping, form, request, response);        }        return mapping.findForward("showCandidacyForm");    }