wrong name -- should be setAttributeParser