public void parse() {
        String titre;
        ArrayList<Piste> morceaux = new ArrayList<Piste>();
//        ArrayList<Instrument> instrument = new ArrayList<>();
//          String nomInstru[];
        boolean ifTitle = true;
        titre = new String();
        String artiste = new String();
        try {
            InputStream flux = new FileInputStream("C:\\Users\\Justin\\Documents\\Netbeansproject\\Web\\src\\java\\utils\\liste_m.txt");
            InputStreamReader lecture = new InputStreamReader(flux);

            BufferedReader buff = new BufferedReader(lecture);
            String ligne = null;
            Artiste a = null;
            Morceau m = null;
            Piste p;
            while ((ligne = buff.readLine()) != null) {
                if (ifTitle == true && !ligne.isEmpty()) {
                    a = new Artiste(ligne.split(" - ")[0]);
                    m = new Morceau(ligne.split(" - ")[1], a);
                    em.persist(m);
                    em.persist(a);
                    ifTitle = false;
                } else if (!ligne.isEmpty() && ifTitle == false) {
                    p = new Piste(ligne, m);
                    m.addPiste(p);
                    em.persist(p);
                } else if (ligne.isEmpty()) {
                    ifTitle = true;
                }
            }
            buff.close();

        } catch (IOException e) {
            System.out.println(e.toString());
        }
    }