public boolean isTransactionPaused() {
    return txContext.get() == PAUSED;
  }
Activates the specified transaction on the calling thread.

@param tx the transaction to activate.
@param needToResumeBySameThread whether a suspended transaction needs to be resumed by the same
       thread.
@throws IllegalStateException if this thread already has an active transaction
geode-core/src/main/java/org/apache/geode/internal/cache/TXManagerImpl.java