Getting the current flavor from a domain name?
So I am trying to obtain the current flavor name/string from '
DocumentModelList domains = coreSession.query("select * from Domain)“. Then I used the domains object and grabbed each of the document domains.
(DocumentModel domain = domains.get(0))
Then I used the domain into the LocalThemeConfig and the LocalThemeHelper classes.
LocalThemeConfig config = LocalThemeHelper.getLocalThemeConfig(domain(0))
But when I printed out what
config is, it just returns
null. I looked at the
getLocalThemeConfig code and it returns
So how can I call the
.getFlavor() function from class LocalThemeConfig when
null and is there some other way to achieve this?