private MarketingCollateralDocumentItem BuildMCDItem(Item item)
        {
            if (item.Name == "__Standard Values")
            {
                // We filter out standard values content items
                return(null);
            }

            var dataItem = new MarketingCollateralDocumentItem()
            {
                Id               = item.ID.ToGuid().ToString(),
                FileName         = item.Name,
                DisplayName      = item.Fields["Display Download Name"].Value,
                FormNumber       = item.Fields["Form Number"].Value,
                ComplianceNumber = item.Fields["Compliance Number"].Value
            };

            string documentStateValues = item.Fields["Repository Document State"].Value;
            var    collection          = Sitecore.Web.WebUtil.ParseUrlParameters(documentStateValues, '&');
            var    dict = new Dictionary <string, string>();

            collection.AllKeys.ToList().ForEach(key => dict[key] = collection[key]);
            dataItem.RepositoryParameters = dict;

            return(dataItem);
        }
        private MarketingCollateralRootDataItem GetDocumentEntryWithReferences(string itemId, string database)
        {
            var singleItem = new MarketingCollateralDocumentItem();

            using (new Sitecore.SecurityModel.SecurityDisabler())
            {
                singleItem = GetItemData(itemId, database);
            }

            return(new MarketingCollateralRootDataItem()
            {
                Items = new MarketingCollateralDocumentItem[] { singleItem }
            });
        }