code: func NewEndorserServer(privDist privateDataDistributor, s Support, pr *platforms.Registry, metricsProv metrics.Provider) *Endorser {
  	e := &Endorser{
  		distributePrivateData: privDist,
  		s:                     s,
  		PlatformRegistry:      pr,
  		PvtRWSetAssembler:     &rwSetAssembler{},
  		Metrics:               NewEndorserMetrics(metricsProv),
  	}
  	return e
  }
docs: // NewEndorserServer creates and returns a new Endorser server instance.