public static IContextItem GetItemByContentType(this IContextCollection collection, Guid contentTypeId)
        {
            var item = collection.Find(
                c => c.ContentTypeId == contentTypeId && string.IsNullOrEmpty(c.Relationship));

            return(item);
        }
        public static IContextItem GetItemByTypeName(this IContextCollection collection, string typeName)
        {
            var item = collection.Find(
                c => c.TypeName.Equals(typeName, StringComparison.InvariantCultureIgnoreCase));

            return(item);
        }