public SiteView run(OldPublicationType oldPublicationType, String user) throws FenixServiceException { try { ISuportePersistente persistentSuport = PersistenceSupportFactory.getDefaultPersistenceSupport();
public SiteView run(OldPublicationType oldPublicationType, String user) throws ExcepcaoPersistencia { ISuportePersistente persistentSuport = PersistenceSupportFactory.getDefaultPersistenceSupport();
    public SiteView run(OldPublicationType oldPublicationType, String user) throws FenixServiceException {        try {            ISuportePersistente persistentSuport = PersistenceSupportFactory.getDefaultPersistenceSupport();            IPersistentTeacher persistentTeacher = persistentSuport.getIPersistentTeacher();            ITeacher teacher = persistentTeacher.readTeacherByUsername(user);            InfoTeacher infoTeacher = Cloner.copyITeacher2InfoTeacher(teacher);            IPersistentOldPublication persistentOldPublication = persistentSuport                    .getIPersistentOldPublication();            List publications = persistentOldPublication.readAllByTeacherAndOldPublicationType(teacher,                    oldPublicationType);            List result = (List) CollectionUtils.collect(publications, new Transformer() {                public Object transform(Object o) {                    IOldPublication oldPublication = (IOldPublication) o;                    return Cloner.copyIOldPublication2InfoOldPublication(oldPublication);                }            });            InfoSiteOldPublications bodyComponent = new InfoSiteOldPublications();            bodyComponent.setInfoOldPublications(result);            bodyComponent.setOldPublicationType(oldPublicationType);            bodyComponent.setInfoTeacher(infoTeacher);            SiteView siteView = new SiteView(bodyComponent);            return siteView;        } catch (ExcepcaoPersistencia e) {            throw new FenixServiceException(e);        }    }