public SiteView run(String user) throws FenixServiceException { try { ISuportePersistente persistentSuport = PersistenceSupportFactory.getDefaultPersistenceSupport();
public SiteView run(String user) throws ExcepcaoPersistencia { ISuportePersistente persistentSuport = PersistenceSupportFactory.getDefaultPersistenceSupport();
    public SiteView run(String user) throws FenixServiceException {        try {            ISuportePersistente persistentSuport = PersistenceSupportFactory.getDefaultPersistenceSupport();            IPersistentTeacher persistentTeacher = persistentSuport.getIPersistentTeacher();            ITeacher teacher = persistentTeacher.readTeacherByUsername(user);            InfoTeacher infoTeacher = Cloner.copyITeacher2InfoTeacher(teacher);            IPersistentExternalActivity persistentExternalActivity = persistentSuport                    .getIPersistentExternalActivity();            List externalActivities = persistentExternalActivity.readAllByTeacher(teacher);            List result = (List) CollectionUtils.collect(externalActivities, new Transformer() {                public Object transform(Object o) {                    IExternalActivity externalActivity = (IExternalActivity) o;                    return Cloner.copyIExternalActivity2InfoExternalActivity(externalActivity);                }            });            InfoSiteExternalActivities bodyComponent = new InfoSiteExternalActivities();            bodyComponent.setInfoExternalActivities(result);            bodyComponent.setInfoTeacher(infoTeacher);            SiteView siteView = new SiteView(bodyComponent);            return siteView;        } catch (ExcepcaoPersistencia e) {            throw new FenixServiceException(e);        }    }