protected virtual void AddThemeIncludeSpeedy(ThemeInclude themeInclude, AssetLinks result, IThemesProvider themesProvider) { Item item = themeInclude.Theme; if (item == null && !themeInclude.ThemeId.IsNull) { item = ContentRepository.GetItem(themeInclude.ThemeId); } if (item != null) { Log.Debug($"Starting optimized files generation process for {item.Name} with following configuration {_configuration}"); IList <Item> allThemes = ServiceLocator.ServiceProvider.GetService <IThemingContext>().GetAllThemes(item); GetLinksSpeedy(allThemes.FilterBaseThemes(), _configuration.ScriptsMode, _configuration.StylesMode, result); GetLinksSpeedy(themesProvider.GetThemes(item, allThemes), _configuration.ScriptsMode, _configuration.StylesMode, result); } }