// PUBLIC METHODS ///////////////////////////////////////////////////
        #region Factory Methods
        public static DomReadOnlyRelationships Create(Relationships relationships)
        {
            Contract.Requires(relationships != null);

            var domReadOnlyRelationships = new DomReadOnlyRelationships(relationships);

            return(domReadOnlyRelationships);
        }
        public static DomReadOnlyRelationships Create(IGetRelationships getRelationships)
        {
            Contract.Requires(getRelationships != null && getRelationships.Relationships != null);

            var relationships = getRelationships.Relationships;

            var domReadOnlyRelationships = new DomReadOnlyRelationships(relationships);

            return(domReadOnlyRelationships);
        }