code: public void init(String webAppRfsPath, String servletMapping, String defaultWebApplication) {
  
          try {
              // explicit set to null to overwrite exiting values from session
              m_availableModules = null;
              m_fullDatabaseKey = null;
              m_databaseKey = null;
              m_databaseKeys = null;
              m_databaseProperties = null;
              m_configuration = null;
              m_installModules = null;
              m_moduleDependencies = null;
              m_sortedDatabaseKeys = null;
              m_moduleFilenames = null;
  
              if (servletMapping == null) {
                  servletMapping = "/opencms/*";
              }
              if (defaultWebApplication == null) {
                  defaultWebApplication = "ROOT";
              }
              m_servletMapping = servletMapping;
              m_defaultWebApplication = defaultWebApplication;
  
              setWebAppRfsPath(webAppRfsPath);
              m_errors = new ArrayList<String>();
  
              if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(webAppRfsPath)) {
                  m_configuration = new CmsParameterConfiguration(m_configRfsPath + CmsSystemInfo.FILE_PROPERTIES);
                  readDatabaseConfig();
              }
  
              if (m_workplaceImportThread != null) {
                  if (m_workplaceImportThread.isAlive()) {
                      m_workplaceImportThread.kill();
                  }
                  m_workplaceImportThread = null;
                  m_newLoggingOffset = 0;
                  m_oldLoggingOffset = 0;
              }
          } catch (Exception e) {
              e.printStackTrace();
              m_errors.add(e.toString());
          }
      }
docs: Creates a new instance of the setup Bean.<p>
  
  @param webAppRfsPath path to the OpenCms web application
  @param servletMapping the OpenCms servlet mapping
  @param defaultWebApplication the name of the default web application