code: @Override
      public void configure(Map props) {
          super.configure(props);
          LOGGER.debug("Hibernate switched to using FlexyPoolDataSource");
          Properties overridingProperties = new Properties();
          for(Map.Entry<String, Object> propsEntry : ((Map<String, Object>) props).entrySet()) {
              if(propsEntry.getKey().startsWith( FLEXY_POOL_PROPERTY_PREFIX ) &&
                  propsEntry.getValue() instanceof String) {
                  overridingProperties.setProperty(
                      propsEntry.getKey(),
                      (String) propsEntry.getValue()
                  );
              }
          }
          flexyPoolDataSource = new FlexyPoolDataSource<DataSource>(getDataSource(), overridingProperties);
      }
docs: Substitute the already configured {@link DataSource} with the {@link FlexyPoolDataSource}
  
  @param props JPA/Hibernate properties