code: func New(endpointConfig fab.EndpointConfig, cryptoSuite core.CryptoSuite, userStore msp.UserStore) (*MSPProvider, error) {
  
  	identityManager := make(map[string]msp.IdentityManager)
  	netConfig := endpointConfig.NetworkConfig()
  	for orgName := range netConfig.Organizations {
  		mgr, err := mspimpl.NewIdentityManager(orgName, userStore, cryptoSuite, endpointConfig)
  		if err != nil {
  			return nil, errors.Wrapf(err, "failed to initialize identity manager for organization: %s", orgName)
  		}
  		identityManager[orgName] = mgr
  	}
  
  	mspProvider := MSPProvider{
  		userStore:       userStore,
  		identityManager: identityManager,
  	}
  
  	return &mspProvider, nil
  }
docs: // New creates a MSP context provider