/// <summary>
        /// Convert a list of WebReference instances
        /// to a ReferenceList.
        /// </summary>
        /// <param name="userContext">
        /// Information about the user that makes this method call.
        /// </param>
        /// <param name="webReferences">List of WebReference instances.</param>
        /// <returns>A ReferenceList.</returns>
        private ReferenceList GetReferences(IUserContext userContext,
                                            List <WebReference> webReferences)
        {
            ReferenceList references;

            references = null;
            if (webReferences.IsNotEmpty())
            {
                references = new ReferenceList();
                foreach (WebReference webReference in webReferences)
                {
                    references.Add(GetReference(userContext, webReference));
                }

                references.Sort();
            }

            return(references);
        }