code: func GetBCCSPFromOpts(config *FactoryOpts) (bccsp.BCCSP, error) {
  	var f BCCSPFactory
  	switch config.ProviderName {
  	case "SW":
  		f = &SWFactory{}
  	case "PLUGIN":
  		f = &PluginFactory{}
  	default:
  		return nil, errors.Errorf("Could not find BCCSP, no '%s' provider", config.ProviderName)
  	}
  
  	csp, err := f.Get(config)
  	if err != nil {
  		return nil, errors.Wrapf(err, "Could not initialize BCCSP %s", f.Name())
  	}
  	return csp, nil
  }
docs: // GetBCCSPFromOpts returns a BCCSP created according to the options passed in input.