IEnrolment enrollment = (IEnrolment) enrollmentDAO.readByOID(Enrolment.class, enrollmentID);
IEnrollment enrollment = (IEnrollment) enrollmentDAO.readByOID(Enrolment.class, enrollmentID);
	protected Object execute(Object object) throws FenixServiceException	{		Integer enrollmentID = (Integer) object;				List enrollmentEvaluations = new ArrayList();		try		{			ISuportePersistente persistenceDAO = SuportePersistenteOJB.getInstance();			IPersistentEnrolment enrollmentDAO = persistenceDAO.getIPersistentEnrolment();			IPersistentEnrolmentEquivalence enrollmentEquivalenceDAO = persistenceDAO.getIPersistentEnrolmentEquivalence();			IPersistentEquivalentEnrolmentForEnrolmentEquivalence equivalentEnrollmentForEnrollmentEquivalenceDAO = persistenceDAO				.getIPersistentEquivalentEnrolmentForEnrolmentEquivalence();			IEnrolment enrollment = (IEnrolment) enrollmentDAO.readByOID(Enrolment.class, enrollmentID);						enrollmentEvaluations.add(0, getEnrollmentEvaluation(enrollment));						if (enrollment != null)			{				IEnrolmentEquivalence enrollmentEquivalence = enrollmentEquivalenceDAO.readByEnrolment(enrollment);				if (enrollmentEquivalence != null)				{					List equivalentEnrollmentsForEnrollmentEquivalence = equivalentEnrollmentForEnrollmentEquivalenceDAO						.readByEnrolmentEquivalence(enrollmentEquivalence);					if ((equivalentEnrollmentsForEnrollmentEquivalence != null)						&& (!equivalentEnrollmentsForEnrollmentEquivalence.isEmpty()))					{						for (int j = 0; j < equivalentEnrollmentsForEnrollmentEquivalence.size(); j++)						{							IEquivalentEnrolmentForEnrolmentEquivalence equivalentEnrolmentForEnrolmentEquivalence =								(IEquivalentEnrolmentForEnrolmentEquivalence) equivalentEnrollmentsForEnrollmentEquivalence								.get(j);														enrollmentEvaluations.add((j + 1), getEnrollmentEvaluation(equivalentEnrolmentForEnrolmentEquivalence								.getEquivalentEnrolment()));						}					}				}			}		} catch (ExcepcaoPersistencia e)		{			throw new FenixServiceException(e);		}		return enrollmentEvaluations;	}