}
protected void saveQueryStream(File file){
try {
ObjectOutputStream s = new ObjectOutputStream(new FileOutputStream(file.getAbsolutePath()));
MBTNode r = (MBTNode) root.getUserObject();
MBTNode[] children = r.getMdxBuilderTreeNodes();
for (int i = 0; children != null && i < children.length; i++) {
saveNode(s, children[i]);
}
// saving the state of the tree (expanded rows) - that's how nice I am
Enumeration enumt = tree.getExpandedDescendants(new TreePath(root.getPath()));