try { if (persistentSupport != null) { persistentSupport.cancelarTransaccao(); } } catch (ExcepcaoPersistencia e) { throw new Error(e); } }
MetadataManager.init("build/WEB-INF/classes/domain_model.dml"); SuportePersistenteOJB.fixDescriptors(); RootDomainObject.init();
    public static void main(String[] args) {            	MetadataManager.init("build/WEB-INF/classes/domain_model.dml");        SuportePersistenteOJB.fixDescriptors();        RootDomainObject.init();            	ISuportePersistente persistentSupport = null;        try {        	persistentSupport = PersistenceSupportFactory.getDefaultPersistenceSupport();            persistentSupport.iniciarTransaccao();            initialize();            persistentSupport.confirmarTransaccao();        } catch (Exception ex) {            ex.printStackTrace();            try {            	if (persistentSupport != null) {            		persistentSupport.cancelarTransaccao();            	}            } catch (ExcepcaoPersistencia e) {                throw new Error(e);            }        }        System.out.println("Initialization complete.");        System.exit(0);    }