Use AttributeSet accessor methods instead of Attribute accessor methods.