code: public void start()
     {
        this.workspaceBackupStopper.start();
        this.repositoryBackupStopper.start();
  
        if (!PrivilegedFileHelper.exists(tempDir))
        {
           throw new IllegalStateException("Directory " + tempDir.getAbsolutePath() + " not found. Please create it.");
        }
  
        //remove if exists all old jcrrestorewi*.tmp files.
        File[] files = PrivilegedFileHelper.listFiles(tempDir, new JcrRestoreWiFilter());
        for (int i = 0; i < files.length; i++)
        {
           PrivilegedFileHelper.delete(files[i]);
        }
  
        // start all scheduled before tasks
        if (registryService != null && !registryService.getForceXMLConfigurationValue(initParams))
        {
           SessionProvider sessionProvider = SessionProvider.createSystemProvider();
           try
           {
              readParamsFromRegistryService(sessionProvider);
           }
           catch (Exception e)
           {
              readParamsFromFile();
              try
              {
                 writeParamsToRegistryService(sessionProvider);
              }
              catch (Exception exc)
              {
                 LOG.error("Cannot write init configuration to RegistryService.", exc);
              }
           }
           finally
           {
              sessionProvider.close();
           }
        }
        else
        {
           readParamsFromFile();
        }
     }
docs: {@inheritDoc}