public List run(Integer executionCourseID, List infoStudents) throws BDException { List students= new LinkedList(); for (Iterator infoStudentsIterator= infoStudents.iterator(); infoStudentsIterator.hasNext();) { InfoStudent infoStudent= (InfoStudent) infoStudentsIterator.next(); students.add(Cloner.copyInfoStudent2IStudent(infoStudent)); } List attendacies= new LinkedList(); try { ISuportePersistente persistenceSupport= SuportePersistenteOJB.getInstance(); IFrequentaPersistente persistentAttendacy= persistenceSupport.getIFrequentaPersistente();  for (Iterator studentsIterator= students.iterator(); studentsIterator.hasNext();) { IStudent student= (IStudent) studentsIterator.next(); IFrequenta attendacy=
public List run(Integer executionCourseID, List infoStudents) throws BDException { List attendacies = new LinkedList(); try { ISuportePersistente persistenceSupport = SuportePersistenteOJB.getInstance(); IFrequentaPersistente persistentAttendacy = persistenceSupport.getIFrequentaPersistente(); IPersistentStudent persistentStudent = persistenceSupport.getIPersistentStudent(); List students = new LinkedList(); for (Iterator infoStudentsIterator = infoStudents.iterator(); infoStudentsIterator.hasNext(); ) { InfoStudent infoStudent = (InfoStudent) infoStudentsIterator.next(); IStudent student = new Student(infoStudent.getIdInternal()); student = (IStudent) persistentStudent.readByOId(student, false); if (student!=null) { students.add(student); }  }  for (Iterator studentsIterator = students.iterator(); studentsIterator.hasNext(); ) { IStudent student = (IStudent) studentsIterator.next(); IFrequenta attendacy =
	public List run(Integer executionCourseID, List infoStudents) throws BDException	{		List students= new LinkedList();		for (Iterator infoStudentsIterator= infoStudents.iterator(); infoStudentsIterator.hasNext();)		{			InfoStudent infoStudent= (InfoStudent) infoStudentsIterator.next();			students.add(Cloner.copyInfoStudent2IStudent(infoStudent));		}		List attendacies= new LinkedList();		try		{			ISuportePersistente persistenceSupport= SuportePersistenteOJB.getInstance();			IFrequentaPersistente persistentAttendacy= persistenceSupport.getIFrequentaPersistente();			//			for (Iterator studentsIterator= students.iterator(); studentsIterator.hasNext();)			{				IStudent student= (IStudent) studentsIterator.next();				IFrequenta attendacy=					persistentAttendacy.readByAlunoIdAndDisciplinaExecucaoId(						student.getIdInternal(),						executionCourseID);				InfoFrequenta infoFrequenta= Cloner.copyIFrequenta2InfoFrequenta(attendacy);				attendacies.add(infoFrequenta);			}		}		catch (ExcepcaoPersistencia ex)		{			throw new BDException("Got an error while trying to get info about a student's work group", ex);		}		return attendacies;	}