Added code to merge specified attr to widget metadata attr.