persistentEnrolment.delete((IEnrolment) iter.next());
persistentEnrolment.delete((IEnrollment) iter.next());
    private static void apagaEnrolments(ArrayList enrolments)    {        try        {            ISuportePersistente suportePersistente = SuportePersistenteOJB                    .getInstance();            IPersistentEnrolment persistentEnrolment = suportePersistente                    .getIPersistentEnrolment();            suportePersistente.iniciarTransaccao();            Iterator iter = enrolments.iterator();            while (iter.hasNext())                persistentEnrolment.delete((IEnrolment) iter.next());            suportePersistente.confirmarTransaccao();        }        catch (ExcepcaoPersistencia e)        {            e.printStackTrace();        }    }