private void exportSchema() {
        String catalog = (String)catalogListCB.getSelectedItem();
        String schema = (String)schemaListCB.getSelectedItem();
        DbCustomModel dbCustom = myModel.getCustomModel();

        PrintWriter pw = null;
        try {
            // Bring up a file dialog to get the file path
            String path = SqlToolkit.getFilePath(this, "Choose File", "", JFileChooser.SAVE_DIALOG, "Save");
            if (path != null  &&  dbCustom != null) {
                pw = new PrintWriter(new File(path), "UTF-8");
                pw.println("CATALOG: " + catalog);
                pw.println("SCHEMA: " + schema);
                for (int i=0;  i<datatypeListCB.getItemCount();  i++) {
                    String datatype = (String)datatypeListCB.getItemAt(i);
                    String[] entries = dbCustom.getEntries(catalog, schema, datatype);
                    pw.println();
                    pw.println("==========================================================================");
                    pw.println("TYPE: " + datatype + ", COUNT: " + (entries == null ? 0 : entries.length));
                    pw.println("==========================================================================");
                    for (String entry : entries) {
                        String source = dbCustom.getSource(catalog, schema, datatype, entry);
                        pw.println();
                        pw.println(">> " + entry + " <<");
                        pw.println();
                        pw.println(source);
                    }
                }
            }
        } catch (Exception ex) {
            System.out.println("EX: " + ex);
        } finally {
            if (pw != null) try { pw.close(); } catch (Exception ex) { }
        }
    }