// incremental restore
DataManager dataManager =
(WorkspacePersistentDataManager) repository.getWorkspaceContainer(wEntry.getName()).getComponent(
WorkspacePersistentDataManager.class);
FileCleanerHolder fileCleanHolder =
(FileCleanerHolder) repository.getWorkspaceContainer(wEntry.getName())
.getComponent(FileCleanerHolder.class);
JCRRestore restorer = new JCRRestore(dataManager, fileCleanHolder.getFileCleaner());
for (File incrBackupFile : JCRRestore.getIncrementalFiles(storageDir))
{
restorer.incrementalRestore(incrBackupFile);
}
}