code: func (server *Server) GetRegisteredTask(name string) (interface{}, error) {
  	taskFunc, ok := server.registeredTasks[name]
  	if !ok {
  		return nil, fmt.Errorf("Task not registered error: %s", name)
  	}
  	return taskFunc, nil
  }
docs: // GetRegisteredTask returns registered task by name