File yamlFile = new File("pom.yml");
File syncFile = new File(".pom.yml");
SyncManager syncManager = new SyncManager(xmlFile, yamlFile, syncFile);
switch (syncManager.determineFormatToTarget())
{
case YAML:
System.out.println("Converting "+xmlFile.getName() + " into " + yamlFile.getName());
sync(xmlFile, yamlFile, false);
syncManager.save();