public void saveDdl() throws XulException {
XulFileDialog fc = (XulFileDialog) document.createElement(ELEM_ID_FILEDIALOG);
fc.setModalParent(((XulDialog)document.getElementById(ELEM_ID_EXPORT_DIALOG)).getRootObject());
RETURN_CODE retVal = fc.showSaveDialog();
File selectedFile = null;
if (retVal == RETURN_CODE.OK) {
selectedFile = (File) fc.getFile();
if (logger.isDebugEnabled()) {
logger.debug("Selected Save file: " + selectedFile.getAbsolutePath());