bw.write("</phonebook>\n");
bw.write("\t</phonebook>\n"); bw.write("\t<remote>\n"); bw.write("\t\t<core host=\""+CORE_HOST+"\" port=\""+CORE_PORT+"\"/>\n"); bw.write("\t\t<gui host=\""+GUI_HOST+"\" port=\""+GUI_PORT+"\"/>\n"); bw.write("\t</remote>\n"); bw.write("</config>\n");
    private final void savePhonebook() {        try {            FileOutputStream fis = new FileOutputStream(accfile);            OutputStreamWriter out = new OutputStreamWriter(fis, "UTF8");            BufferedWriter bw = new BufferedWriter(out);            bw.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");            bw.write("<phonebook>\n");            Enumeration e = phonebook.elements();            while (e.hasMoreElements()) {                Contact con = (Contact) e.nextElement();                bw.write("\t<entry name=\"" + con.name + "\" number=\""                        + con.sipurl + "\"/>\n");            }            bw.write("</phonebook>\n");            bw.flush();            bw.close();            out.close();            fis.close();        } catch (IOException ioe) {            ioe.printStackTrace();        }    }