code: public void restoreExistingRepository(File repositoryBackupSetDir, boolean asynchronous)
        throws BackupOperationException, BackupConfigurationException
     {
        File[] cfs = PrivilegedFileHelper.listFiles(repositoryBackupSetDir, new RepositoryBackupLogsFilter());
  
        if (cfs.length == 0)
        {
           throw new BackupConfigurationException("Can not found repository backup log in directory : "
              + repositoryBackupSetDir.getPath());
        }
  
        if (cfs.length > 1)
        {
           throw new BackupConfigurationException(
              "Backup set directory should contains only one repository backup log : " + repositoryBackupSetDir.getPath());
        }
  
        RepositoryBackupChainLog backupChainLog = new RepositoryBackupChainLog(cfs[0]);
  
        this.restoreExistingRepository(backupChainLog, backupChainLog.getOriginalRepositoryEntry(), asynchronous);
     }
docs: {@inheritDoc}