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