private void save(JTable fuelingTable) {
    	if (!validateFuelingData(fuelingTable))
    		return;
    	if (tempFileName.isEmpty()) {
            if (JFileChooser.APPROVE_OPTION != fileChooser.showSaveDialog(null))
                return;
            File file = fileChooser.getSelectedFile();
            tempFileName = file.getName();
            FileWriter out = null;
            try {
            	out = new FileWriter(file);
                write(fuelingTable, out);
            }
            catch (Exception e) {
                e.printStackTrace();
                logger.error(e);
            }
            finally {
            	if (out != null) {
                    try {
                    	out.close();
                    }
                    catch (IOException e) {
                        logger.error(e);
                    }
            	}
            }
            String[] files = Config.getPOLFuelingFiles().split(",");
            String fs = "";
            for (String fn : files) {
            	if (fn.equals(fileName) || fn.isEmpty())
            		continue;
            	fs += ("," + fn);
            }
        	fs += ("," + tempFileName);
            Config.setPOLFuelingFiles(fs);
            loadList.addItem(tempFileName);
            loadList.setSelectedItem(tempFileName);
    	}
    }