public ModuleApiDescriptionModel AddModule(ModuleApiDescriptionModel module)
        {
            if (Modules.ContainsKey(module.RootPath))
            {
                throw new RocketException("There is already a module with same root path: " + module.RootPath);
            }

            return(Modules[module.RootPath] = module);
        }
 public ModuleApiDescriptionModel GetOrAddModule(string rootPath, string remoteServiceName)
 {
     return(Modules.GetOrAdd(rootPath, () => ModuleApiDescriptionModel.Create(rootPath, remoteServiceName)));
 }