public ArrayList<DataModel> loadDataFromFolder(File folderURL, String matchingInputString, ArrayList<DataModel> resultData) throws ParserConfigurationException, IOException, SAXException {
        String destinationFolder = folderURL.toString();
        String folderName = "";
        Boolean zahajeniBylo = false;

        for (File file : FileManager.listFilesMatching(new File(destinationFolder), matchingInputString)) {
            String destinationFile = destinationFolder + File.separator + file.getName();
            if (MainFrame.DEBUG) {
                System.out.println("output file: " + destinationFile);
            }
            File archivedFile = new File(destinationFile);

            XStream xstream = new XStream(new StaxDriver(new NoNameCoder()));
            xstream.processAnnotations(VotingResult.class);
            xstream.processAnnotations(Session.class);
            VotingResult votingResult = (VotingResult) xstream.fromXML(archivedFile);
            DataModel dataModel = new DataModel(votingResult.getNumber(), votingResult.getTopic(),"00:00:00", "00:00:00", votingResult.getTime(),
                    votingResult.getSession(), 0, votingResult.getYes(), votingResult.getNo(),
                    votingResult.getAbstained(), votingResult.getNotVoting(), "", archivedFile.getName(), votingResult.getDeputy());

            addUniqueDataModel(resultData, dataModel);



            if((resultData.size()-1)>0)
            {
                DataModel predchozi = resultData.get(resultData.size()-2);

                if(predchozi.zacatekNasledujiciho=="00:00:00")
                {
                    predchozi.zacatekNasledujiciho = votingResult.getTime();
                    resultData.set(resultData.size()-2,predchozi);
                }

                if(zahajeniBylo && !votingResult.getTopic().equals("Zahájení"))
                {
                    //predchozi.posunTime = posuTime(predchozi.getTopicContent(),predchozi.getTime(), predchozi.zacatekNasledujiciho);
                }



                DataModel h = resultData.get(resultData.size()-1);
                h.posunTime = posuTime2(h.getTopicContent(),predchozi.getTime(), h.getTime(), predchozi.getPosunTime());


            }

            if(votingResult.getTopic().equals("Zahájení"))
            {
                zahajeniBylo = true;
            }





            folderName = votingResult.session.getNumber();

        }

        ApplicationObjects.getInstance().setOutputFolderLocation(ApplicationObjects.getInstance().getOutputFolderLocation()+"\\"+folderName);

        return resultData;
    }