System.out.println("path: " + path); System.out.println("parents: " + parents);
    private int writeParents() throws IOException {        int parents;        String path = prefs.absolutePath();        int lastslash = path.lastIndexOf("/");        if (lastslash > 0) {            path = path.substring(1, lastslash);            StringTokenizer st = new StringTokenizer(path);            parents = st.countTokens();            System.out.println("path: " + path);            System.out.println("parents: " + parents);            for (int i=0; i<parents; i++) {                String name = st.nextToken();                indent(i+2);                bw.write("<node name=\"" + name + "\">");                bw.write("<map/>");                bw.write("</node>");                bw.newLine();            }        } else {            parents = 0;        }        return parents;    }