public Set<TXStateProxy> getTransactionStatesForClient(InternalDistributedMember id) {
    Set<TXStateProxy> result = new HashSet<>();
    synchronized (hostedTXStates) {
      for (Map.Entry<TXId, TXStateProxy> entry : hostedTXStates.entrySet()) {
        if (entry.getKey().getMemberId().equals(id)) {
          result.add(entry.getValue());
        }
      }
    }
    return result;
  }
retrieve the transaction states for the given client

@param id the client's membership ID
@return a set of the currently open transaction states
geode-core/src/main/java/org/apache/geode/internal/cache/TXManagerImpl.java