@Override
    public void enregistrer() {
//            int compsSize = m_tblComps.size();

        String compstr = "";

        Iterator iter = m_tblComps.keySet().iterator();
        while (iter.hasNext()) {
            Competence key = (Competence) iter.next();
            compstr += key.getNomComp() + Constant.m_compTypeDelim;
            System.out.println("saved compstr :" + compstr);

            compstr += m_tblComps.get(key).getLibType() + Constant.m_compDelim;
        }

        int tmplen = compstr.length();
        if (tmplen > 0 && (compstr.substring(tmplen - 1, tmplen) == null ? Constant.m_compDelim == null : compstr.substring(tmplen - 1, tmplen).equals(Constant.m_compDelim))) {
            compstr = compstr.substring(0, tmplen - 1);
        }

        String content = m_titre + Constant.m_itemDelim
                + m_region.getRegnom() + Constant.m_itemDelim
                + "-1" + Constant.m_itemDelim
                + "-1" + Constant.m_itemDelim
                + "-1" + Constant.m_itemDelim + compstr;
        try {
            File file = new File(Constant.m_offreList);
            // if file doesnt exists, then create it
            if (!file.exists()) {
                file.createNewFile();
            }
            FileWriter fw = new FileWriter(file.getAbsoluteFile(), true);
            BufferedWriter bw = new BufferedWriter(fw);
            bw.write(content);
            bw.newLine();
            bw.close();
            OffreNoyauFonctionnel.ajouterStage(this);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }