public ArrayList<TXId> getHostedTxIds() {
    synchronized (hostedTXStates) {
      return new ArrayList<>(hostedTXStates.keySet());
    }
  }
Return true if refCount went to zero.
geode-core/src/main/java/org/apache/geode/internal/cache/TXManagerImpl.java