public void AddFlowToModule(string route, string system, string moduleName, FlowDefinition flow)
        {
            var moduleExists = _moduleRepository.Exists(route, system, moduleName);

            if (moduleExists)
            {
                _moduleRepository.AddFlowToExistingModule(route, system, moduleName, flow);
            }
            else
            {
                var module = new ModuleDefinition
                {
                    Route  = route,
                    System = system,
                    Module = moduleName,
                    Flows  = new List <FlowDefinition>
                    {
                        flow
                    }
                };
                _moduleRepository.AddModule(module);
            }
        }