final Theme readTheme = Theme.getById(infoCandidacy.getTheme().getIdInternal());
final Theme readTheme = rootDomainObject.readThemeByOID(infoCandidacy.getTheme().getIdInternal());
    public void run(InfoCandidacy infoCandidacy) throws ExcepcaoPersistencia {        Candidacy candidacy = DomainFactory.makeCandidacy();        candidacy.setApproved(infoCandidacy.getApproved());        candidacy.setMotivation(infoCandidacy.getMotivation());                // Modality        final Modality modality = (Modality) persistentObject.readByOID(Modality.class,infoCandidacy.getInfoModality().getIdInternal());                candidacy.setModality(modality);        // Student        final Student readStudent = (Student) persistentObject.readByOID(Student.class, infoCandidacy.getInfoStudent().getIdInternal());        candidacy.setStudent(readStudent);        // Seminary        final Seminary readSeminary = (Seminary) persistentObject.readByOID(Seminary.class, infoCandidacy.getInfoSeminary().getIdInternal());        candidacy.setSeminary(readSeminary);                // Curricular Course        final CurricularCourse readCurricularCourse = (CurricularCourse) persistentObject.readByOID(CurricularCourse.class, infoCandidacy.getCurricularCourse().getIdInternal());        candidacy.setCurricularCourse(readCurricularCourse);        // Theme        if (modality.getIdInternal().equals(infoCandidacy.getInfoModality().getIdInternal())) {            candidacy.setTheme(null);        } else {            final Theme readTheme = Theme.getById(infoCandidacy.getTheme().getIdInternal());            candidacy.setTheme(readTheme);        }        if (!infoCandidacy.getInfoSeminary().getHasThemes().booleanValue()) {            candidacy.setTheme(null);        }        // Seminary Case Study Choices        for (InfoCaseStudyChoice infoCaseStudyChoice : (List<InfoCaseStudyChoice>) infoCandidacy.getCaseStudyChoices()) {            final CaseStudyChoice caseStudyChoice = DomainFactory.makeCaseStudyChoice();                        caseStudyChoice.setOrder(infoCaseStudyChoice.getOrder());            final CaseStudy caseStudy = CaseStudy.getById(infoCaseStudyChoice.getCaseStudy().getIdInternal());            caseStudyChoice.setCaseStudy(caseStudy);            caseStudyChoice.setCandidacy(candidacy);            candidacy.addCaseStudyChoices(caseStudyChoice);        }    }