Searches for an attribute definition with a specified name for the entity definition and all its supertypes.
A smart pointer to the found attribute definition; if the attribute is not found then a NULL smart pointer is returned.
The search of the attribute is performed starting from the most base entity definition towards its subtypes (to this entity definition).