public static bool HasReference(this XElement element) { return element.HasAttribute(ReferenceAttributeName); }