private void endTransactionWriter() {
    Declarable d = createDeclarable();
    if (!(d instanceof TransactionWriter)) {
      throw new CacheXmlException(
          String.format("A %s is not an instance of a TransactionWriter.",
              d.getClass().getName()));
    }
    CacheTransactionManagerCreation txMgrCreation = (CacheTransactionManagerCreation) stack.peek();
    txMgrCreation.setWriter((TransactionWriter) d);
  }
Create a <code>transaction-writer</code> using the declarable interface and set the transaction
manager with the newly instantiated writer.
geode-core/src/main/java/org/apache/geode/internal/cache/xmlcache/CacheXmlParser.java