class WriteOrderCreatorBootstrapRecovery {

    public void initializeOnBootstrap() {

        try {
            //Backup files
            Path fileBucketTarStoragePath =
                Paths.get(inputTarStorageFolder).resolve(BucketTopologyHelper.BACKUP_FILE_BUCKET);
            if (fileBucketTarStoragePath.toFile().exists()) {
                recoverFileBucket(BucketTopologyHelper.BACKUP_FILE_BUCKET, fileBucketTarStoragePath);
            }

            // Other files
            for (String fileBucket : bucketTopologyHelper.listFileBuckets()) {

                fileBucketTarStoragePath = Paths.get(inputTarStorageFolder).resolve(fileBucket);
                if (fileBucketTarStoragePath.toFile().exists()) {
                    recoverFileBucket(fileBucket, fileBucketTarStoragePath);
                }

            }
        } catch (Exception e) {
            throw new VitamRuntimeException("Could not reschedule tar files to copy on tape", e);
        }
    }

    public  WriteOrderCreatorBootstrapRecovery(
        String inputTarStorageFolder,
        ArchiveReferentialRepository archiveReferentialRepository,
        BucketTopologyHelper bucketTopologyHelper,
        WriteOrderCreator writeOrderCreator, TarFileRapairer tarFileRapairer);

}