if (uid == null || uid.isEmpty()) {
throw new IllegalArgumentException("Feature identifier (param#0) cannot be null nor empty");
}
List<Feature> dbFlips = getJdbcTemplate().query(SQLQUERY_GET_FEATURE_BY_ID, MAPPER, uid);
if (dbFlips.isEmpty()) {
throw new FeatureNotFoundException(uid);
}
Feature fp = dbFlips.get(0);
List<String> auths = getJdbcTemplate().query(SQL_GET_ROLES, new SingleColumnRowMapper<String>(), uid);
fp.getPermissions().addAll(auths);
return fp;