code: public void restoreExistingWorkspace(File workspaceBackupSetDir, boolean asynchronous)
        throws BackupOperationException, BackupConfigurationException
     {
        File[] cfs = PrivilegedFileHelper.listFiles(workspaceBackupSetDir, new BackupLogsFilter());
  
        if (cfs.length == 0)
        {
           throw new BackupConfigurationException("Can not found workspace backup log in directory : "
              + workspaceBackupSetDir.getPath());
        }
  
        if (cfs.length > 1)
        {
           throw new BackupConfigurationException("Backup set directory should contains only one workspace backup log : "
              + workspaceBackupSetDir.getPath());
        }
  
        BackupChainLog backupChainLog = new BackupChainLog(cfs[0]);
  
        this.restoreExistingWorkspace(backupChainLog, backupChainLog.getBackupConfig().getRepository(), backupChainLog
           .getOriginalWorkspaceEntry(), asynchronous);
     }
docs: {@inheritDoc}