Use the AttributeSet as the 'key' to the map instead of the 'raw' pointer.