StudentCurricularPlan scp = (StudentCurricularPlan)sp.getIStudentCurricularPlanPersistente().readByOID(StudentCurricularPlan.class,SCPIDInternal);
IStudentCurricularPlan scp = (IStudentCurricularPlan)sp.getIStudentCurricularPlanPersistente().readByOID(StudentCurricularPlan.class,SCPIDInternal);
    public boolean doesThisSCPBelongToASeminaryCandidate(Integer SCPIDInternal)    {        boolean result = false;        try        {            ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport();            StudentCurricularPlan scp = (StudentCurricularPlan)sp.getIStudentCurricularPlanPersistente().readByOID(StudentCurricularPlan.class,SCPIDInternal);            List candidacies = sp.getIPersistentSeminaryCandidacy().readByStudentID(scp.getStudent().getIdInternal());            if (candidacies != null && candidacies.size() > 0)                result = true;        }        catch (ExcepcaoPersistencia e)        {           // thats ok, lets say this SCP does <br>NOT</br> belong to a candidate        }                        return result;    }