in operationsbus/matcher.go [42:50]
func (m *Matcher) CreateOperationInstance(key string) (ApiOperation, error) {
t, exists := m.Types[key]
if !exists {
return nil, errors.New("The ApiOperation doesn't exist in the map: " + key)
}
instance := reflect.New(t).Interface().(ApiOperation)
return instance, nil
}