XWIKI-9218: Add Locale based API to get default and available locales
Bulletproofing