switch (syncManager.determineFormatToTarget())
{
case YAML:
System.out.println("Converting "+xmlFile.getName() + " into " + yamlFile.getName());
sync(xmlFile, yamlFile, false);
syncManager.save();
break;
case XML:
System.out.println("Converting "+yamlFile.getName() + " into " + xmlFile.getName());
sync(xmlFile, yamlFile, true);
syncManager.save();