code: func NewHandler(factory ControllerFactoryFunc, methodName string) ControllerHandler {
  	handler := ControllerHandler{factory: factory, methodName: methodName}
  	if !handler.isValid() {
  		panic("Invalid handler: " + methodName)
  	}
  	return handler
  }
docs: // NewHandler creates a ControllerHandler from the factory and methodName