// ResourceCollection ///////////////////////////////////////////////
        public IPrimaryResourceCollectionBuilder <TResource> ResourceCollection <TResource>(IEnumerable <TResource> clrResourceCollection)
            where TResource : class, IResource
        {
            var primaryResourceCollectionBuilder = new PrimaryResourceCollectionBuilder <TResource>(this, this.DomDocument, clrResourceCollection);

            return(primaryResourceCollectionBuilder);
        }
        public IPrimaryResourceCollectionBuilder <TResource> ResourceCollection <TResource>(IResourceCollectionSource <TResource> resourceCollectionSource)
            where TResource : class, IResource
        {
            Contract.Requires(resourceCollectionSource != null);

            var clrResourceCollection            = resourceCollectionSource.GetResourceCollection();
            var primaryResourceCollectionBuilder = new PrimaryResourceCollectionBuilder <TResource>(this, this.DomDocument, clrResourceCollection);

            return(primaryResourceCollectionBuilder);
        }