protected int GetAttributeGlobalOrder(Attribute attribute)
 {
     if (attribute is DerivedAttribute)
     {
         return(0);
     }
     return(AllAttributes.IndexOf(attribute) + 1);
 }