LPS-42531 As now the preferences are stored per site (and not per scope) we need to get the preferences per site. However, if the portlet is scoped to global, the method themeDisplay.getSiteGroupId() will return the global