logger.debug("Starting to download the restored file under the name '{}'.", recoveredFileName);
File destination = new File(context.getFile().getParentFile(), recoveredFileName);
// add the process to download the file
ProcessComponent downloadProcess = ProcessFactory.instance().createDownloadFileProcess(
selectedNode.getFilePublicKey(), selected.getIndex(), destination, networkManager);
getParent().add(downloadProcess);
// add the process to upload the file
ProcessComponent addProcess = ProcessFactory.instance().createNewFileProcess(destination,
networkManager);
getParent().add(addProcess);
} catch (Hive2HiveException e) {
throw new ProcessExecutionException(e);
}