private static void closeDataSource(Object dataSource) {
    if (dataSource instanceof AutoCloseable) {
      try {
        ((AutoCloseable) dataSource).close();
      } catch (Exception e) {
        if (logger.isDebugEnabled()) {
          logger.debug("Exception closing DataSource", e);
        }
      }
    }
  }
Bind the transaction resources. Bind UserTransaction and TransactionManager.
<p>
If there is pre-existing JNDI tree in the system and TransactionManager / UserTransaction is
already bound, GemFire will make use of these resources, but if TransactionManager /
UserTransaction is not available, the GemFire TransactionManager / UserTransaction will be
bound to the JNDI tree.
<p>
geode-core/src/main/java/org/apache/geode/internal/jndi/JNDIInvoker.java