public void generateUsers(int nb) {

        String line;
        int end = currentLine + nb;
        int i = 0;

        InputStream is = null;
        BufferedReader br = null;
        try {
            is = getClass().getClassLoader().getResourceAsStream("data/data.csv");
            br = new BufferedReader(new InputStreamReader(is));
            while ((line = br.readLine()) != null) {
                if (i < currentLine) {
                    i++;
                } else if (i >= currentLine) {
                    if (i >= end) {
                        currentLine = i;
                        break;
                    } else {
                        i++;
                        String[] user = line.split(",");
                        creeUtilisateur(user[2], user[1], user[0]);
                    }
                }
            }
        } catch (IOException e) {
            System.out.println(e.getMessage());
        } finally {
            if (br != null) {
                try {
                    br.close();
                } catch (IOException e) {
                    System.out.println(e.getMessage());
                }
            }
        }
    }