code: func (r *registry) loadCompiled(handlerFactory string, handlerType HandlerType, extraArgs ...string) {
  	registryMD := reflect.ValueOf(&HandlerLibrary{})
  
  	o := registryMD.MethodByName(handlerFactory)
  	if !o.IsValid() {
  		logger.Panicf(fmt.Sprintf("Method %s isn't a method of HandlerLibrary", handlerFactory))
  	}
  
  	inst := o.Call(nil)[0].Interface()
  
  	if handlerType == Auth {
  		r.filters = append(r.filters, inst.(auth.Filter))
  	} else if handlerType == Decoration {
  		r.decorators = append(r.decorators, inst.(decoration.Decorator))
  	} else if handlerType == Endorsement {
  		if len(extraArgs) != 1 {
  			logger.Panicf("expected 1 argument in extraArgs")
  		}
  		r.endorsers[extraArgs[0]] = inst.(endorsement2.PluginFactory)
  	} else if handlerType == Validation {
  		if len(extraArgs) != 1 {
  			logger.Panicf("expected 1 argument in extraArgs")
  		}
  		r.validators[extraArgs[0]] = inst.(validation.PluginFactory)
  	}
  }
docs: // loadCompiled loads a statically compiled handler