String studentNumberTmp = String.valueOf(((InfoStudentCurricularPlan)allInfoSCPs.getInfoStudentCurricularPlans().get(0)).getInfoStudent().getNumber());
String studentNumberTmp = String.valueOf(((InfoStudentCurricularPlan) infoSCPs.getInfoStudentCurricularPlans().get(0)).getInfoStudent().getNumber());
    private void executeService(String username, HttpServletRequest request) throws Exception	{	    IUserView userView = (IUserView) request.getSession().getAttribute(SessionConstants.U_VIEW);	    	    	    String criterioStr = (String)request.getAttribute("select");	    if (criterioStr == null)	        criterioStr = request.getParameter("select");				String scpIDStr = request.getParameter("studentCPID");        if (scpIDStr == null)            scpIDStr = (String) request.getAttribute("studentCPID");	    	    StudentCurricularPlanIDDomainType scpID = null;		EnrollmentStateSelectionType criterio = null;				if (criterioStr != null)		    criterio = new EnrollmentStateSelectionType(criterioStr);		else		    criterio = EnrollmentStateSelectionType.ALL;				if(scpIDStr != null)		    scpID = new StudentCurricularPlanIDDomainType(scpIDStr);		else		    scpID = StudentCurricularPlanIDDomainType.NEWEST;				InfoStudentCurricularPlansWithSelectedEnrollments infoSCPs = null;		InfoStudentCurricularPlansWithSelectedEnrollments allInfoSCPs = null;				try		{		    /* invoca o servico para obter os SCPs pedidos */		    Object args[] = { username, scpID, criterio};		    infoSCPs = (InfoStudentCurricularPlansWithSelectedEnrollments) ServiceManagerServiceFactory.executeService(userView, "ReadStudentCurricularPlansByPersonAndCriteria", args);		    		    /* invoca o servico para obter TODOS os SCPs com NENHUM enrollment*/		    Object args1[] = {username, StudentCurricularPlanIDDomainType.ALL, EnrollmentStateSelectionType.NONE};		    allInfoSCPs = (InfoStudentCurricularPlansWithSelectedEnrollments)ServiceManagerServiceFactory.executeService(userView,"ReadStudentCurricularPlansByPersonAndCriteria",args1);		}		catch (NonExistingServiceException e)		{		    throw new FenixActionException(e);		}				// qualquer numero de aluno serve para identificar Person		String studentNumberTmp = String.valueOf(((InfoStudentCurricularPlan)allInfoSCPs.getInfoStudentCurricularPlans().get(0)).getInfoStudent().getNumber());		request.setAttribute("studentNumber",studentNumberTmp);		request.setAttribute("studentCPs", infoSCPs);				List enrollmentOptions = EnrollmentStateSelectionType.getLabelValueBeanList();		request.setAttribute("enrollmentOptions",enrollmentOptions);				List allSCPs = getLabelValueBeanList(allInfoSCPs);		request.setAttribute("allSCPs",allSCPs);	}