publication.setPublicationString(publicationTeacher.getPublication().toString()); infoPublications.add(InfoPublication.newInfoFromDomain(publication));
InfoPublication infoPublication = InfoPublication.newInfoFromDomain(publication); infoPublication.setPublicationString(publicationTeacher.getPublication().toString()); infoPublications.add(infoPublication);
    private List getInfoPublications(ISuportePersistente sp, ITeacher teacher, Integer typePublication)            throws ExcepcaoPersistencia {        IPersistentPublicationTeacher persistentPublicationTeacher = sp                .getIPersistentPublicationTeacher();        PublicationArea publicationArea = null;        if (PublicationConstants.CIENTIFIC.equals(typePublication))            publicationArea = PublicationArea.CIENTIFIC;        else            publicationArea = PublicationArea.DIDATIC;        List publicationsTeacher = persistentPublicationTeacher.readByTeacherAndPublicationArea(teacher,                publicationArea);        List infoPublications = new ArrayList();        Iterator iter = publicationsTeacher.iterator();        while (iter.hasNext()) {            IPublicationTeacher publicationTeacher = (IPublicationTeacher) iter.next();            IPublication publication = publicationTeacher.getPublication();            publication.setPublicationString(publicationTeacher.getPublication().toString());            infoPublications.add(InfoPublication.newInfoFromDomain(publication));        }        return infoPublications;    }