IEnrolment enrolment = attend.getEnrolment();
IEnrollment enrolment = attend.getEnrolment();
    private void verifyAlreadySubmittedMarks(        List attendList,        IPersistentEnrolmentEvaluation enrolmentEvaluationDAO)        throws ExcepcaoPersistencia, FenixServiceException    {        List enrolmentListIds = (List)CollectionUtils.collect(attendList, new Transformer()        {            public Object transform(Object input)            {                IFrequenta attend = (IFrequenta)input;                IEnrolment enrolment = attend.getEnrolment();                return enrolment == null ? null : enrolment.getIdInternal();            }        });        enrolmentListIds = (List)CollectionUtils.select(enrolmentListIds, new Predicate()        {            public boolean evaluate(Object arg0)            {                return arg0 != null;            }        });        List alreadySubmiteMarks = enrolmentEvaluationDAO.readAlreadySubmitedMarks(enrolmentListIds);        if (!alreadySubmiteMarks.isEmpty())        {            throw new FenixServiceException("errors.submitMarks.yetSubmited");        }    }