String (String xml, boolean oldStyle) { if (oldStyle) { return "<?xml version=\"1.0\"?>" + "<profiles>" + xml + "</profiles>"; } return "<?xml version=\"1.0\"?>" + "<profilesXml>" + "<profiles>" + xml + "</profiles>" + "</profilesXml>"; }