/** Close entity managers and all factories */ public static void closeAll() { LOG.info("Closing all"); EntityManagerService.closeAll(); EntityManagerFactoryService.closeFactories(); }