private void processExportData() {
        ArrayList<DataModel> inputData = ApplicationObjects.getInstance().getInputDataFromXML();
        Object[][] dataFromTable = ((TableModel) table.getModel()).getData();
        for (int i = 0; i < inputData.size(); i++) {
            inputData.get(i).setTime((String) dataFromTable[i][1]);
            inputData.get(i).setPosunTime((String) dataFromTable[i][2]);
            inputData.get(i).setOrderNumber((Integer) dataFromTable[i][4]);

        }

        Boolean vyexportovano = true;

        try {
            DataParser.getInstance().exportDataToXml();
            //JOptionPane.showMessageDialog(null, stringDataSuccessfullyExported);
        } catch (IOException e) {
            JOptionPane.showMessageDialog(null, stringDataNotSuccessfullyExported);
            vyexportovano = false;
            e.printStackTrace();
        }

        try {
            DataParser.getInstance().exportDataToCVS();
            //JOptionPane.showMessageDialog(null, stringDataSuccessfullyExported);
        } catch (IOException e) {
            JOptionPane.showMessageDialog(null, "Soubor csv.csv se nepodařilo vyexportovat");
            vyexportovano = false;
            e.printStackTrace();
        }

        try {
            DataParser.getInstance().exportDataToChapters();
            //JOptionPane.showMessageDialog(null, stringDataSuccessfullyExported);
        } catch (IOException e) {
            JOptionPane.showMessageDialog(null, "Soubor chapters.txt se nepodařilo vyexportovat");
            vyexportovano = false;
            e.printStackTrace();
        }

        if(vyexportovano) JOptionPane.showMessageDialog(null, stringDataSuccessfullyExported);

    }