API to access to widgetset pom element and fix for refactoring (#12696).

Change-Id: I0e3db0233518ea63d13d78719d425daf573179a5