Revert "fix Issue 11789 - No setAttributes to complement getAttributes"

This reverts commit c124140e09d7acaa6cd6d4a4d677adf68fc08c55.