code: func NewChannelProvider(capabilities map[string]*cb.Capability) *ChannelProvider {
  	cp := &ChannelProvider{}
  	cp.registry = newRegistry(cp, capabilities)
  	_, cp.v11 = capabilities[ChannelV1_1]
  	_, cp.v13 = capabilities[ChannelV1_3]
  	return cp
  }
docs: // NewChannelProvider creates a channel capabilities provider.