private static DriverManagerConnectionProviderImpl buildConnectionProvider(
     Properties props, final boolean allowAggressiveRelease) {
   DriverManagerConnectionProviderImpl connectionProvider =
       new DriverManagerConnectionProviderImpl() {
         public boolean supportsAggressiveRelease() {
           return allowAggressiveRelease;
         }
       };
   connectionProvider.configure(props);
   return connectionProvider;
 }
 @After
 public void tearDown() {
   if (sessionFactory != null) {
     sessionFactory.close();
   }
   if (serviceRegistry != null) {
     serviceRegistry.destroy();
   }
   if (jbossProvider != null) {
     jbossProvider.stop();
   }
   if (acmeProvider != null) {
     acmeProvider.stop();
   }
 }
 private static DriverManagerConnectionProviderImpl buildConnectionProvider(String tenantId) {
   DriverManagerConnectionProviderImpl connectionProvider =
       new DriverManagerConnectionProviderImpl();
   connectionProvider.configure(getConnectionProviderProperties(tenantId + "-db"));
   return connectionProvider;
 }