docs: private Locale getUserLocale(IPerson user) {
          // get user locale
          Locale[] locales = localeStore.getUserLocales(user);
          LocaleManager localeManager =
                  localeManagerFactory.createLocaleManager(user, Arrays.asList(locales));
          return localeManager.getLocales().get(0);
      }