setAttributeByTagName(new String[] {"options", "columns", "download", "column0", "width"} , downloadWidths[0]); setAttributeByTagName(new String[] {"options", "columns", "download", "column1", "width"} , downloadWidths[1]); setAttributeByTagName(new String[] {"options", "columns", "download", "column2", "width"} , downloadWidths[2]); setAttributeByTagName(new String[] {"options", "columns", "download", "column3", "width"} , downloadWidths[3]); setAttributeByTagName(new String[] {"options", "columns", "download", "column4", "width"} , downloadWidths[4]); setAttributeByTagName(new String[] {"options", "columns", "download", "column5", "width"} , downloadWidths[5]); setAttributeByTagName(new String[] {"options", "columns", "download", "column6", "width"} , downloadWidths[6]); setAttributeByTagName(new String[] {"options", "columns", "download", "column7", "width"} , downloadWidths[7]); setAttributeByTagName(new String[] {"options", "columns", "download", "column8", "width"} , downloadWidths[8]); setAttributeByTagName(new String[] {"options", "columns", "download", "column9", "width"} , downloadWidths[9]);  setAttributeByTagName(new String[] {"options", "columns", "upload", "column0", "width"} , uploadWidths[0]); setAttributeByTagName(new String[] {"options", "columns", "upload", "column1", "width"} , uploadWidths[1]); setAttributeByTagName(new String[] {"options", "columns", "upload", "column2", "width"} , uploadWidths[2]); setAttributeByTagName(new String[] {"options", "columns", "upload", "column3", "width"} , uploadWidths[3]); setAttributeByTagName(new String[] {"options", "columns", "upload", "column4", "width"} , uploadWidths[4]); setAttributeByTagName(new String[] {"options", "columns", "upload", "column5", "width"} , uploadWidths[5]); setAttributeByTagName(new String[] {"options", "columns", "upload", "column6", "width"} , uploadWidths[6]); setAttributeByTagName(new String[] {"options", "columns", "upload", "column7", "width"} , uploadWidths[7]);  setAttributeByTagName(new String[] {"options", "columns", "server", "column0", "width"} , serverWidths[0]); setAttributeByTagName(new String[] {"options", "columns", "server", "column1", "width"} , serverWidths[1]); setAttributeByTagName(new String[] {"options", "columns", "server", "column2", "width"} , serverWidths[2]); setAttributeByTagName(new String[] {"options", "columns", "server", "column3", "width"} , serverWidths[3]); setAttributeByTagName(new String[] {"options", "columns", "server", "column4", "width"} , serverWidths[4]);  setAttributeByTagName(new String[] {"options", "columns", "share", "column0", "width"} , shareWidths[0]); setAttributeByTagName(new String[] {"options", "columns", "share", "column1", "width"} , shareWidths[1]); setAttributeByTagName(new String[] {"options", "columns", "share", "column2", "width"} , shareWidths[2]);  setAttributeByTagName(new String[] {"options", "columns", "download", "column1", "visibility"} , Boolean.toString(downloadVisibilities[1])); setAttributeByTagName(new String[] {"options", "columns", "download", "column2", "visibility"} , Boolean.toString(downloadVisibilities[2])); setAttributeByTagName(new String[] {"options", "columns", "download", "column3", "visibility"} , Boolean.toString(downloadVisibilities[3])); setAttributeByTagName(new String[] {"options", "columns", "download", "column4", "visibility"} , Boolean.toString(downloadVisibilities[4])); setAttributeByTagName(new String[] {"options", "columns", "download", "column5", "visibility"} , Boolean.toString(downloadVisibilities[5])); setAttributeByTagName(new String[] {"options", "columns", "download", "column6", "visibility"} , Boolean.toString(downloadVisibilities[6])); setAttributeByTagName(new String[] {"options", "columns", "download", "column7", "visibility"} , Boolean.toString(downloadVisibilities[7])); setAttributeByTagName(new String[] {"options", "columns", "download", "column8", "visibility"} , Boolean.toString(downloadVisibilities[8])); setAttributeByTagName(new String[] {"options", "columns", "download", "column9", "visibility"} , Boolean.toString(downloadVisibilities[9]));  setAttributeByTagName(new String[] {"options", "columns", "upload", "column1", "visibility"} , Boolean.toString(uploadVisibilities[1])); setAttributeByTagName(new String[] {"options", "columns", "upload", "column2", "visibility"} , Boolean.toString(uploadVisibilities[2])); setAttributeByTagName(new String[] {"options", "columns", "upload", "column3", "visibility"} , Boolean.toString(uploadVisibilities[3])); setAttributeByTagName(new String[] {"options", "columns", "upload", "column4", "visibility"} , Boolean.toString(uploadVisibilities[4])); setAttributeByTagName(new String[] {"options", "columns", "upload", "column5", "visibility"} , Boolean.toString(uploadVisibilities[5])); setAttributeByTagName(new String[] {"options", "columns", "upload", "column6", "visibility"} , Boolean.toString(uploadVisibilities[6])); setAttributeByTagName(new String[] {"options", "columns", "upload", "column7", "visibility"} , Boolean.toString(uploadVisibilities[7]));  setAttributeByTagName(new String[] {"options", "columns", "download", "column0", "index"} , Integer.toString(downloadIndex[0])); setAttributeByTagName(new String[] {"options", "columns", "download", "column1", "index"} , Integer.toString(downloadIndex[1])); setAttributeByTagName(new String[] {"options", "columns", "download", "column2", "index"} , Integer.toString(downloadIndex[2])); setAttributeByTagName(new String[] {"options", "columns", "download", "column3", "index"} , Integer.toString(downloadIndex[3])); setAttributeByTagName(new String[] {"options", "columns", "download", "column4", "index"} , Integer.toString(downloadIndex[4])); setAttributeByTagName(new String[] {"options", "columns", "download", "column5", "index"} , Integer.toString(downloadIndex[5])); setAttributeByTagName(new String[] {"options", "columns", "download", "column6", "index"} , Integer.toString(downloadIndex[6])); setAttributeByTagName(new String[] {"options", "columns", "download", "column7", "index"} , Integer.toString(downloadIndex[7])); setAttributeByTagName(new String[] {"options", "columns", "download", "column8", "index"} , Integer.toString(downloadIndex[8])); setAttributeByTagName(new String[] {"options", "columns", "download", "column9", "index"} , Integer.toString(downloadIndex[9]));  setAttributeByTagName(new String[] {"options", "columns", "upload", "column0", "index"} , Integer.toString(uploadIndex[0])); setAttributeByTagName(new String[] {"options", "columns", "upload", "column1", "index"} , Integer.toString(uploadIndex[1])); setAttributeByTagName(new String[] {"options", "columns", "upload", "column2", "index"} , Integer.toString(uploadIndex[2])); setAttributeByTagName(new String[] {"options", "columns", "upload", "column3", "index"} , Integer.toString(uploadIndex[3])); setAttributeByTagName(new String[] {"options", "columns", "upload", "column4", "index"} , Integer.toString(uploadIndex[4])); setAttributeByTagName(new String[] {"options", "columns", "upload", "column5", "index"} , Integer.toString(uploadIndex[5])); setAttributeByTagName(new String[] {"options", "columns", "upload", "column6", "index"} , Integer.toString(uploadIndex[6])); setAttributeByTagName(new String[] {"options", "columns", "upload", "column7", "index"} , Integer.toString(uploadIndex[7]));  saveDom(); } catch (Exception e) { if (logger.isEnabledFor(Level.ERROR)) { logger.error(ApplejuiceFassade.ERROR_MESSAGE, e); } } }
for (int i = 0; i < downloadWidths.length; i++) { propertyHandler.put("options_columns_download_column" + i + "_width", downloadWidths[i]); } for (int i = 0; i < uploadWidths.length; i++) { propertyHandler.put("options_columns_upload_column" + i + "_width", uploadWidths[i]); } for (int i = 0; i < serverWidths.length; i++) { propertyHandler.put("options_columns_server_column" + i + "_width", serverWidths[i]); } for (int i = 0; i < shareWidths.length; i++) { propertyHandler.put("options_columns_share_column" + i + "_width", shareWidths[i]); } for (int i = 0; i < downloadVisibilities.length; i++) { propertyHandler.put("options_columns_download_column" + i + "_visibility", downloadVisibilities[i]); } for (int i = 0; i < uploadVisibilities.length; i++) { propertyHandler.put("options_columns_upload_column" + i + "_visibility", uploadVisibilities[i]); } for (int i = 0; i < downloadIndex.length; i++) { propertyHandler.put("options_columns_download_column" + i + "_index", downloadIndex[i]); } for (int i = 0; i < uploadIndex.length; i++) { propertyHandler.put("options_columns_upload_column" + i + "_index", uploadIndex[i]); } saveFile(); } catch (Exception e) { if (logger.isEnabledFor(Level.ERROR)) { logger.error(ApplejuiceFassade.ERROR_MESSAGE, e); } } }
    public void save() {        try {            setAttributeByTagName(new String[] {"options", "location", "x"}                                  , mainXY.x);            setAttributeByTagName(new String[] {"options", "location", "y"}                                  , mainXY.y);            setAttributeByTagName(new String[] {"options", "location", "width"}                                  , mainDimension.width);            setAttributeByTagName(new String[] {"options", "location", "height"}                                  , mainDimension.height);            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column0", "width"}                                  , downloadWidths[0]);            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column1", "width"}                                  , downloadWidths[1]);            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column2", "width"}                                  , downloadWidths[2]);            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column3", "width"}                                  , downloadWidths[3]);            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column4", "width"}                                  , downloadWidths[4]);            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column5", "width"}                                  , downloadWidths[5]);            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column6", "width"}                                  , downloadWidths[6]);            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column7", "width"}                                  , downloadWidths[7]);            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column8", "width"}                                  , downloadWidths[8]);            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column9", "width"}                                  , downloadWidths[9]);            setAttributeByTagName(new String[] {"options", "columns", "upload",                                  "column0", "width"}                                  , uploadWidths[0]);            setAttributeByTagName(new String[] {"options", "columns", "upload",                                  "column1", "width"}                                  , uploadWidths[1]);            setAttributeByTagName(new String[] {"options", "columns", "upload",                                  "column2", "width"}                                  , uploadWidths[2]);            setAttributeByTagName(new String[] {"options", "columns", "upload",                                  "column3", "width"}                                  , uploadWidths[3]);            setAttributeByTagName(new String[] {"options", "columns", "upload",                                  "column4", "width"}                                  , uploadWidths[4]);            setAttributeByTagName(new String[] {"options", "columns", "upload",                                  "column5", "width"}                                  , uploadWidths[5]);            setAttributeByTagName(new String[] {"options", "columns", "upload",                                  "column6", "width"}                                  , uploadWidths[6]);            setAttributeByTagName(new String[] {"options", "columns", "upload",                                  "column7", "width"}                                  , uploadWidths[7]);            setAttributeByTagName(new String[] {"options", "columns", "server",                                  "column0", "width"}                                  , serverWidths[0]);            setAttributeByTagName(new String[] {"options", "columns", "server",                                  "column1", "width"}                                  , serverWidths[1]);            setAttributeByTagName(new String[] {"options", "columns", "server",                                  "column2", "width"}                                  , serverWidths[2]);            setAttributeByTagName(new String[] {"options", "columns", "server",                                  "column3", "width"}                                  , serverWidths[3]);            setAttributeByTagName(new String[] {"options", "columns", "server",                                  "column4", "width"}                                  , serverWidths[4]);            setAttributeByTagName(new String[] {"options", "columns", "share",                                  "column0", "width"}                                  , shareWidths[0]);            setAttributeByTagName(new String[] {"options", "columns", "share",                                  "column1", "width"}                                  , shareWidths[1]);            setAttributeByTagName(new String[] {"options", "columns", "share",                                  "column2", "width"}                                  , shareWidths[2]);            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column1", "visibility"}                                  , Boolean.toString(downloadVisibilities[1]));            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column2", "visibility"}                                  , Boolean.toString(downloadVisibilities[2]));            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column3", "visibility"}                                  , Boolean.toString(downloadVisibilities[3]));            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column4", "visibility"}                                  , Boolean.toString(downloadVisibilities[4]));            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column5", "visibility"}                                  , Boolean.toString(downloadVisibilities[5]));            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column6", "visibility"}                                  , Boolean.toString(downloadVisibilities[6]));            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column7", "visibility"}                                  , Boolean.toString(downloadVisibilities[7]));            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column8", "visibility"}                                  , Boolean.toString(downloadVisibilities[8]));            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column9", "visibility"}                                  , Boolean.toString(downloadVisibilities[9]));            setAttributeByTagName(new String[] {"options", "columns", "upload",                                  "column1", "visibility"}                                  , Boolean.toString(uploadVisibilities[1]));            setAttributeByTagName(new String[] {"options", "columns", "upload",                                  "column2", "visibility"}                                  , Boolean.toString(uploadVisibilities[2]));            setAttributeByTagName(new String[] {"options", "columns", "upload",                                  "column3", "visibility"}                                  , Boolean.toString(uploadVisibilities[3]));            setAttributeByTagName(new String[] {"options", "columns", "upload",                                  "column4", "visibility"}                                  , Boolean.toString(uploadVisibilities[4]));            setAttributeByTagName(new String[] {"options", "columns", "upload",                                  "column5", "visibility"}                                  , Boolean.toString(uploadVisibilities[5]));            setAttributeByTagName(new String[] {"options", "columns", "upload",                                  "column6", "visibility"}                                  , Boolean.toString(uploadVisibilities[6]));            setAttributeByTagName(new String[] {"options", "columns", "upload",                                  "column7", "visibility"}                                  , Boolean.toString(uploadVisibilities[7]));            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column0", "index"}                                  , Integer.toString(downloadIndex[0]));            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column1", "index"}                                  , Integer.toString(downloadIndex[1]));            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column2", "index"}                                  , Integer.toString(downloadIndex[2]));            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column3", "index"}                                  , Integer.toString(downloadIndex[3]));            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column4", "index"}                                  , Integer.toString(downloadIndex[4]));            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column5", "index"}                                  , Integer.toString(downloadIndex[5]));            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column6", "index"}                                  , Integer.toString(downloadIndex[6]));            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column7", "index"}                                  , Integer.toString(downloadIndex[7]));            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column8", "index"}                                  , Integer.toString(downloadIndex[8]));            setAttributeByTagName(new String[] {"options", "columns",                                  "download", "column9", "index"}                                  , Integer.toString(downloadIndex[9]));            setAttributeByTagName(new String[] {"options", "columns", "upload",                                  "column0", "index"}                                  , Integer.toString(uploadIndex[0]));            setAttributeByTagName(new String[] {"options", "columns", "upload",                                  "column1", "index"}                                  , Integer.toString(uploadIndex[1]));            setAttributeByTagName(new String[] {"options", "columns", "upload",                                  "column2", "index"}                                  , Integer.toString(uploadIndex[2]));            setAttributeByTagName(new String[] {"options", "columns", "upload",                                  "column3", "index"}                                  , Integer.toString(uploadIndex[3]));            setAttributeByTagName(new String[] {"options", "columns", "upload",                                  "column4", "index"}                                  , Integer.toString(uploadIndex[4]));            setAttributeByTagName(new String[] {"options", "columns", "upload",                                  "column5", "index"}                                  , Integer.toString(uploadIndex[5]));            setAttributeByTagName(new String[] {"options", "columns", "upload",                                  "column6", "index"}                                  , Integer.toString(uploadIndex[6]));            setAttributeByTagName(new String[] {"options", "columns", "upload",                                  "column7", "index"}                                  , Integer.toString(uploadIndex[7]));            saveDom();        }        catch (Exception e) {            if (logger.isEnabledFor(Level.ERROR)) {                logger.error(ApplejuiceFassade.ERROR_MESSAGE, e);            }        }    }