Added sample for "setAttributes" to demonstrate the usage of a map.