if (idInternal == null || idInternal.equals("")) {
if ((idInternal == null || idInternal.equals("")) && request.getAttribute("CalledFromSelect") == null) {
    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");        if (executionDegreeOID != null && !executionDegreeOID.equals("")) {        	// the student's curricular plan may not have an executionDegree        	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");    }