try { GroupFilter filter = new GroupFilter(); filter.setHeading(intitule); if (DaoManager.getGroupDao().getGroups(filter).size() > 0) return 2; } catch (Exception e) { return 3; }
    private int checking() {        String intitule = getIntitule();        if (intitule == null || "".equals(intitule))            return 1;        return 0;    }