code: public void initialize(CmsObject cms) {
  
          if (!m_availableLocales.contains(Locale.ENGLISH)) {
              throw new RuntimeException("The locale 'en' must be configured in opencms-system.xml.");
          }
          // init the locale handler
          m_localeHandler.initHandler(cms);
          // set default locale
          m_defaultLocale = m_defaultLocales.get(0);
          initLanguageDetection();
          // set initialized status
          m_initialized = true;
          if (CmsLog.INIT.isInfoEnabled()) {
              CmsLog.INIT.info(Messages.get().getBundle().key(Messages.INIT_I18N_CONFIG_VFSACCESS_0));
          }
      }
docs: Initializes this locale manager with the OpenCms system configuration.<p>
  
  @param cms an OpenCms context object that must have been initialized with "Admin" permissions