public void saveArmylist(ArmylistArmy listArmy, File file){ XMLArmylistDocumentFactory factory = new XMLArmylistDocumentFactory(listArmy);    this.armylistXMLWriter.writeToDisk(factory.createDOM(), file);
public void saveArmylist(ArmylistArmy listArmy){ if(listArmy != null){ try{ File file = (File)((HashMap)this.armylistFilesByGameSystem.get(listArmy.getGameSystem().getName())).get(listArmy.getName()); this.saveArmylist(listArmy, file); logger.debug("Saved: "+ listArmy.getName() + " at file: "+file); }catch(Exception e){ logger.error("Failed to save armylist: "+ listArmy.getName(), e); }  }else{ logger.warn("Can't save null army"); }
    public void saveArmylist(ArmylistArmy listArmy, File file){        XMLArmylistDocumentFactory factory = new XMLArmylistDocumentFactory(listArmy);                /*try{            javax.xml.transform.TransformerFactory.newInstance().newTransformer().transform(new DOMSource(factory.createDOM()), new StreamResult(file));        }catch(Exception e){            //LOG!!!            e.printStackTrace();        }*/                this.armylistXMLWriter.writeToDisk(factory.createDOM(), file);    }