try { ISuportePersistente persistentSuport = PersistenceSupportFactory.getDefaultPersistenceSupport(); IPersistentWebSiteSection persistentWebSiteSection = persistentSuport .getIPersistentWebSiteSection(); IPersistentWebSiteItem persistentWebSiteItem = persistentSuport.getIPersistentWebSiteItem(); IPessoaPersistente persistentPerson = persistentSuport.getIPessoaPersistente();
ISuportePersistente persistentSuport = PersistenceSupportFactory.getDefaultPersistenceSupport(); IPersistentWebSiteSection persistentWebSiteSection = persistentSuport .getIPersistentWebSiteSection(); IPersistentWebSiteItem persistentWebSiteItem = persistentSuport.getIPersistentWebSiteItem(); IPessoaPersistente persistentPerson = persistentSuport.getIPessoaPersistente();
    public InfoWebSite run(Integer sectionCode, InfoWebSiteItem infoWebSiteItem, String user)            throws FenixServiceException {        List infoWebSiteSections = new ArrayList();        InfoWebSiteSection infoWebSiteSection = null;        try {            ISuportePersistente persistentSuport = PersistenceSupportFactory.getDefaultPersistenceSupport();            IPersistentWebSiteSection persistentWebSiteSection = persistentSuport                    .getIPersistentWebSiteSection();            IPersistentWebSiteItem persistentWebSiteItem = persistentSuport.getIPersistentWebSiteItem();            IPessoaPersistente persistentPerson = persistentSuport.getIPessoaPersistente();            IWebSiteSection webSiteSection;            webSiteSection = (IWebSiteSection) persistentWebSiteSection.readByOID(WebSiteSection.class,                    sectionCode);            infoWebSiteSection = Cloner.copyIWebSiteSection2InfoWebSiteSection(webSiteSection);            checkData(infoWebSiteItem, webSiteSection);            IWebSiteItem webSiteItem = new WebSiteItem();            persistentWebSiteItem.simpleLockWrite(webSiteItem);            fillWebSiteItemForDB(infoWebSiteItem, user, persistentPerson, persistentWebSiteSection,                    webSiteSection, webSiteItem);            List webSiteSections = persistentWebSiteSection.readByWebSite(webSiteSection.getWebSite());            Iterator iterSections = webSiteSections.iterator();            while (iterSections.hasNext()) {                WebSiteSection section = (WebSiteSection) iterSections.next();                InfoWebSiteSection infoWebSiteSection2 = Cloner                        .copyIWebSiteSection2InfoWebSiteSection(section);                infoWebSiteSections.add(infoWebSiteSection2);            }        } catch (ExcepcaoPersistencia excepcaoPersistencia) {            throw new FenixServiceException(excepcaoPersistencia);        }        InfoWebSite infoWebSite = infoWebSiteSection.getInfoWebSite();        infoWebSite.setSections(infoWebSiteSections);        return infoWebSite;    }