code: func (b *RWSetBuilder) GetTxReadWriteSet() *TxRwSet {
  	sortedNsPubBuilders := []*nsPubRwBuilder{}
  	util.GetValuesBySortedKeys(&(b.pubRwBuilderMap), &sortedNsPubBuilders)
  
  	var nsPubRwSets []*NsRwSet
  	for _, nsPubRwBuilder := range sortedNsPubBuilders {
  		nsPubRwSets = append(nsPubRwSets, nsPubRwBuilder.build())
  	}
  	return &TxRwSet{NsRwSets: nsPubRwSets}
  }
docs: // GetTxReadWriteSet returns the read-write set
  // TODO make this function private once txmgr starts using new function `GetTxSimulationResults` introduced here