public void exportMatrix(String outputFile) {
        try {
            PrintWriter pw = new PrintWriter(outputFile);
            pw.println("\"Step\",\"Server\",\"Application\",\"Links\"");
            for (int step = 0; step < bpgHistory.getStepNumber(); step++) {
                for (int i = 0; i < bpgHistory.getApplicationHistory().get(step).size(); i++) {
                    for (int j = 0; j < bpgHistory.getServerHistory().get(step).size(); j++) {
                        int value = 0;
                        for (String serverService : bpgHistory.getServerHistory().get(step).get(j).services) {
                            if (bpgHistory.getApplicationHistory().get(step).get(i).services.contains(serverService)) {
                                value++;
                            }
                        }
                        pw.println("\"" + step +
                                "\",\"" + bpgHistory.getServerHistory().get(step).get(j).name +
                                "\",\"" + bpgHistory.getApplicationHistory().get(step).get(i).name +
                                "\",\"" + value + "\"");
                    }
                }
            }
            pw.close();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
    }