/** * Commits the current, and starts a new write transaction. */ public static void checkpointTransaction() { if (FenixFramework.isInitialized()) { throw new Error("Cannot checkpoint transactions after the framework is initialized."); } try { TransactionManager txManager = FenixFramework.getTransactionManager(); if (txManager.getTransaction() != null) { txManager.commit(); } txManager.begin(false); } catch (Exception e) { logger.error("An error has ocurred while checkpointing the transaction", e); throw new Error(e); } } }