Changed the interface of DualCommandFactory to support creation of
multiple transactions when needed.