for (ZMountpoint mp : folder.getMountpoints()) { path = String.format("%s (%s:%s)", mp.getPath(), mp.getOwnerDisplayName(), mp.getRemoteId()); System.out.format("%10.10s  %4.4s  %10s  %10s  %s%n", mp.getId(), mp.getDefaultView(), "NA", "NA", path); }
    private void doDumpFolder(ZFolder folder, boolean recurse) {        String path;        if (folder instanceof ZSearchFolder) {            path = String.format("%s (%s)", folder.getPath(), ((ZSearchFolder)folder).getQuery());        } else if (folder.getRemoteURL() != null) {            path = String.format("%s (%s)", folder.getPath(), folder.getRemoteURL());        } else {            path = folder.getPath();        }                System.out.format("%10.10s  %4.4s  %10d  %10d  %s%n",                folder.getId(), folder.getDefaultView().name(), folder.getUnreadCount(), folder.getMessageCount(), path);        if (recurse) {            for (ZFolder child : folder.getSubFolders()) {                doDumpFolder(child, recurse);            }            for (ZMountpoint mp : folder.getMountpoints()) {                path = String.format("%s (%s:%s)", mp.getPath(), mp.getOwnerDisplayName(), mp.getRemoteId());                System.out.format("%10.10s  %4.4s  %10s  %10s  %s%n",                                mp.getId(), mp.getDefaultView(), "NA", "NA", path);            }        }    }