docs: public void initializeCms(CmsObject cms) {
  
          List<String> toRemove = new ArrayList<String>();
          // Repositories which can't be fully initialized need to be removed.
          for (I_CmsRepository repository : m_repositoryMap.values()) {
              String repoName = repository.getName();
              try {
                  repository.initializeCms(cms);
              } catch (CmsException e) {
                  LOG.warn("Could not fully initialize repository " + repoName, e);
                  toRemove.add(repoName);
              }
          }
          for (String removeRepo : toRemove) {
              m_repositoryMap.remove(removeRepo);
          }
          m_hasJlan = !getRepositories(CmsJlanRepository.class).isEmpty();
          if (!CmsShell.isJlanDisabled() && m_hasJlan) {
              CmsJlanUsers.setAdminCms(cms);
              m_jlanThreadManager = new CmsJlanThreadManager();
              m_jlanThreadManager.start();
          }
  
      }