final MZmineProject project = MZmineCore.getCurrentProject();
project.addFile(correctedDataFile);
// Remove the original data file if requested
if (removeOriginal)
project.removeFile(dataFile);
} catch (IOException e) {
logger.log(Level.SEVERE,
"Retention correction initialization error", e);
setStatus(TaskStatus.ERROR);
errorMessage = e.getMessage();