Use the AttributeSet query instead of the Attribute query.