infoPerson.setIdInternal(infoAuthor.getIdInternal());
    public List<IPerson> run(final List<InfoAuthor> infoAuthorsList) throws ExcepcaoPersistencia, ExistingServiceException {                final List<IPerson> authorsList = new ArrayList<IPerson>(infoAuthorsList.size());                List<Integer> externalPersonsIndexes = new ArrayList<Integer>();                ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport();        IPessoaPersistente personDAO = sp.getIPessoaPersistente();                List<InfoExternalPerson> infoExternalPersons = new ArrayList<InfoExternalPerson>();        int index = 0;        for (InfoAuthor infoAuthor : infoAuthorsList) {            if (infoAuthor.getIdInternal() == null) {                InfoExternalPerson infoExternalPerson = new InfoExternalPerson();                InfoPerson infoPerson = new InfoPerson();                infoPerson.setIdInternal(infoAuthor.getIdInternal());                infoPerson.setNome(infoAuthor.getAuthor());                InfoWorkLocation infoWorkLocation = new InfoWorkLocation();                infoWorkLocation.setName(infoAuthor.getOrganization());                infoExternalPerson.setInfoPerson(infoPerson);                infoExternalPerson.setInfoWorkLocation(infoWorkLocation);                infoExternalPersons.add(infoExternalPerson);                externalPersonsIndexes.add(index);            }            else {                IPerson person = (IPerson) personDAO.readByOID(Person.class, infoAuthor.getIdInternal());                authorsList.add(person);            }            index++;                    }                InsertExternalPersons iep = new InsertExternalPersons();        List<IExternalPerson> externalPersons = iep.run(infoExternalPersons);                Iterator<Integer> indexIterator =  externalPersonsIndexes.iterator();        for (IExternalPerson externalPerson : externalPersons) {                        authorsList.add(indexIterator.next(),externalPerson.getPerson());                    }                return authorsList;    }