try { ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport();
ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport();
    public SiteView run(Integer teacherId, Integer publicationId, String publicationArea)            throws FenixServiceException, ExistingServiceException {        InfoSitePublications infoSitePublications = new InfoSitePublications();        try {            ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport();            IPersistentTeacher persistentTeacher = sp.getIPersistentTeacher();            ITeacher teacher = (Teacher) persistentTeacher.readByOID(Teacher.class, teacherId);            InfoTeacher infoTeacher = Cloner.copyITeacher2InfoTeacher(teacher);            infoSitePublications.setInfoTeacher(infoTeacher);            IPersistentPublication persistentPublication = sp.getIPersistentPublication();            IPublication publication = (IPublication) persistentPublication.readByOID(Publication.class,                    publicationId);            IPersistentPublicationTeacher persistentPublicationTeacher = sp                    .getIPersistentPublicationTeacher();            IPublicationTeacher publicationTeacher = persistentPublicationTeacher                    .readByTeacherAndPublication(teacher, publication);            if (publicationTeacher == null)                publicationTeacher = new PublicationTeacher();            persistentPublicationTeacher.simpleLockWrite(publicationTeacher);            publicationTeacher.setPublication(publication);            publicationTeacher.setTeacher(teacher);            publicationTeacher.setPublicationArea(PublicationArea.getEnum(publicationArea));                                    //            List infoPublications = getInfoPublications(teacher, publication, persistentTeacher,//                    persistentPublication);////            List infoPublicationCientifics = getInfoPublicationsType(infoPublications,//                    PublicationConstants.CIENTIFIC);////            List infoPublicationDidatics = getInfoPublicationsType(infoPublications,//                    PublicationConstants.DIDATIC);////            infoSitePublications.setInfoCientificPublications(infoPublicationCientifics);//            infoSitePublications.setInfoDidaticPublications(infoPublicationDidatics);////            return new SiteView(infoSitePublications);                        return null;        } catch (ExcepcaoPersistencia e) {            throw new FenixServiceException(e);        }    }