private void AddAttributeIDPattern(PIMAttribute attribute)
        {
            if (attribute == null)
            {
                return;
            }

            if (attribute.ListOfValues != null &&
                attribute.ListOfValues.UseValueID &&
                !String.IsNullOrWhiteSpace(attribute.ListOfValues.IDPattern) &&
                !AttributeIDPatterns.ContainsKey(attribute.ID))
            {
                AttributeIDPatterns.Add(attribute.ID, attribute.ListOfValues.IDPattern);
            }
        }
        private string GetIDPattern(string attributeId)
        {
            string idPattern;

            if (String.IsNullOrWhiteSpace(attributeId))
            {
                return(null);
            }

            if (!AttributeIDPatterns.TryGetValue(attributeId, out idPattern))
            {
                return(null);
            }

            return(idPattern);
        }