toBeSavedConfig.getConfiguration().unsetAlgorithms();
toBeSavedConfig.getConfiguration().addNewAlgorithms();
for(String metricID : algorithmOrigin.keySet())
if(algorithmOrigin.get(metricID) == fileID) {
Algorithm algo = algorithmsMap.get(metricID);
toBeSavedConfig.getConfiguration().getAlgorithms().addNewAlgorithm().set(algo);
}
toBeSavedConfig.save(new File(fileMap.get(fileID)), xmlOptions);
confMap.put(fileID, toBeSavedConfig);