public void extraire() throws IOException {
        EtatCritere critere = new EtatCritere();
        Calendar cal = Calendar.getInstance();
        cal.set(2012,Calendar.DECEMBER,31);
        critere.setReconnuSuisseALaDate(cal.getTime());
        Set<IEtat> etats = gestionnaire.rechercher(critere);
        List<IEtat> listeEtat = new ArrayList<IEtat>(etats);
        Collections.sort(listeEtat,new Comparator<IEtat>() {
            @Override
            public int compare(IEtat o1, IEtat o2) {
                return o1.getNumeroOFS() - o2.getNumeroOFS();
            }
        });
        BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(new File("ExtractionEtatGETaX2012.csv")), Charset.forName("ISO8859-1")));

        for (IEtat etat : listeEtat) {
            writer.write(String.valueOf(etat.getNumeroOFS()));
            writer.write(";");
            writer.write(etat.getFormeCourte("fr"));
            writer.newLine();
        }
        writer.close();
    }