public override void Initialize(string name, System.Collections.Specialized.NameValueCollection attributes) { if (!this.isInitialized) { base.Initialize(name, attributes); try { productCatalogRepository = SharePointServiceLocator.Current.GetInstance <IProductCatalogRepository>(); this.profileUrl = productCatalogRepository.GetCategoryProfileUrl(); this.isInitialized = true; } catch (Exception ex) { this.logger.LogToOperations(ex); } } }