final ExecutionCourse executionCourse) throws ExcepcaoPersistencia { final IPersistentProfessorship persistentProfessorship = persistentSupport .getIPersistentProfessorship(); final List<Professorship> professorships = executionCourse.getProfessorships(); for (final Professorship professorship : professorships) { professorship.delete(); persistentProfessorship.deleteByOID(Professorship.class, professorship.getIdInternal()); } professorships.clear();
final ExecutionCourse executionCourse) throws ExcepcaoPersistencia {  final List<Professorship> professorships = executionCourse.getProfessorships(); for(; !professorships.isEmpty(); professorships.get(0).delete());
    private void deleteProfessorships(final ISuportePersistente persistentSupport,            final ExecutionCourse executionCourse) throws ExcepcaoPersistencia {        final IPersistentProfessorship persistentProfessorship = persistentSupport                .getIPersistentProfessorship();        final List<Professorship> professorships = executionCourse.getProfessorships();        for (final Professorship professorship : professorships) {            professorship.delete();            persistentProfessorship.deleteByOID(Professorship.class, professorship.getIdInternal());        }        professorships.clear();    }