public static DocumentNode GetResourceKey(DocumentCompositeNode node)
        {
            IPropertyId resourceProperty = ResourceNodeHelper.GetResourceProperty(node);

            if (resourceProperty == null)
            {
                return(null);
            }
            return(node.Properties[resourceProperty]);
        }
        public static void SetResourceKey(DocumentCompositeNode node, DocumentNode valueNode)
        {
            IPropertyId resourceProperty = ResourceNodeHelper.GetResourceProperty(node);

            node.Properties[resourceProperty] = valueNode;
        }