List<Feature> lFp = getJdbcTemplate().query(SQLQUERY_ALLFEATURES, MAPPER);
for (Feature flipPoint : lFp) {
mapFP.put(flipPoint.getUid(), flipPoint);
}
// Populating Roles
RoleRowMapper rrm = new RoleRowMapper();
getJdbcTemplate().query(SQL_GET_ALLROLES, rrm);
Map<String, Set<String>> roles = rrm.getRoles();
for (String featId : roles.keySet()) {
if (mapFP.containsKey(featId)) {
mapFP.get(featId).getPermissions().addAll(roles.get(featId));
}
}