class MetadataDao extends NamedParameterJdbcDaoSupport {

    public List<CategoricalAttribute> buildFullMetadataDict() {
        final MapSqlParameterSource params = new MapSqlParameterSource();
        params.addValue(LIST_PARAMETER, sensitiveMetadataKeys);
        final List<Pair<String, String>> allAttributeValues = getNamedParameterJdbcTemplate()
            .query(createMetadataDictionary, params, MetadataParameters.getMetadataKeyValueMapper());
        return CategoricalAttributeDao.convertPairsToAttributesList(allAttributeValues);
    }

}