Added a method to the MdAttributeHierarchy to imporve the query API