@Override
  public void setWriter(TransactionWriter writer) {
    if (cache.isClient()) {
      throw new IllegalStateException(
          "A TransactionWriter cannot be registered on a client");
    }
    this.writer = writer;
  }
Get the TransactionWriter for the cache

@return the current TransactionWriter
@see TransactionWriter
geode-core/src/main/java/org/apache/geode/internal/cache/TXManagerImpl.java