code: func (c *Client) TransferRegistrations(close bool) (fab.EventSnapshot, error) {
  	if !close {
  		return c.Transfer()
  	}
  
  	var snapshot fab.EventSnapshot
  	var err error
  	c.close(func() {
  		logger.Debug("Stopping dispatcher and taking snapshot of all registrations...")
  		snapshot, err = c.StopAndTransfer()
  		if err != nil {
  			logger.Errorf("An error occurred while stopping dispatcher and taking snapshot: %s", err)
  		}
  	})
  
  	return snapshot, err
  }
docs: // TransferRegistrations transfers all registrations into an EventSnapshot.
  // The registrations are not closed and may susequently be transferred to a
  // new event client.
  // - close - if true then the client will also be closed