@Override
    public List<Role> load(Criteria criteria, GenericLoadQuery loadGeneric, Connection conn) throws DaoQueryException {
        int pageSize = 10;

        List paramList = new ArrayList<>();
        StringBuilder sb = new StringBuilder(WHERE);
        String queryStr = new QueryMapper() {
            @Override
            public String mapQuery() {
                Appender.append(DAO_ID_ROLE, DB_ROLE_ID_ROLE, criteria, paramList, sb, AND);
                Appender.append(DAO_ROLE_NAME, DB_ROLE_NAME_ROLE, criteria, paramList, sb, AND);
                if (paramList.isEmpty()) {
                    return LOAD_QUERY;
                } else {
                    return sb.insert(0, LOAD_QUERY).toString();
                }
            }
        }.mapQuery();

        try {
            return loadGeneric.sendQuery(queryStr, paramList.toArray(), pageSize, conn, (ResultSet rs, int rowNum) -> {
                Role bean = new Role();
                bean.setIdRole(rs.getInt(DB_ROLE_ID_ROLE));
                bean.setRoleName(rs.getString(DB_ROLE_NAME_ROLE));
                return bean;
            });
        } catch (DaoException ex) {
             throw new DaoQueryException(ERR_ROLE_LOAD, ex);
        }
    }