code: private Locale getContentLocale(ListConfigurationBean bean) {
  
          CmsObject cms = A_CmsUI.getCmsObject();
          if (bean.getFolders().isEmpty()) {
              return OpenCms.getLocaleManager().getDefaultLocale(cms, "/");
          } else {
              return OpenCms.getLocaleManager().getDefaultLocale(
                  cms,
                  cms.getRequestContext().removeSiteRoot(m_currentConfig.getFolders().get(0)));
          }
      }
docs: Returns the content locale configured for the first search root folder of the search configuration.<p>
  
  @param bean the search configuration data
  
  @return the locale