private Map<String, Integer> fetchWithWildCards(final List<String> wildCardedFeedNames) {

        final Condition condition = JooqUtil.createWildCardedStringsCondition(
                META_FEED.NAME, wildCardedFeedNames, true, BooleanOperator.OR);

        final Map<String, Integer> feedToIdMap = JooqUtil.contextResult(metaDbConnProvider, context -> context
                .select(META_FEED.NAME, META_FEED.ID)
                .from(META_FEED)
                .where(condition)
                .fetchMap(META_FEED.NAME, META_FEED.ID));

        // Manually put any non wild-carded ones in the cache
        feedToIdMap.entrySet()
                .stream()
                .filter(entry ->
                        !PatternUtil.containsWildCards(entry.getKey()))
                .forEach(entry ->
                        cache.put(entry.getKey(), entry.getValue()));

        LOGGER.debug(() -> LogUtil.message("fetchWithWildCards called for wildCardedFeedNames: '{}', returning: '{}'",
                wildCardedFeedNames, feedToIdMap.entrySet()
                        .stream()
                        .map(entry -> entry.getKey() + ":" + entry.getValue())
                        .collect(Collectors.joining(", "))));

        return feedToIdMap;
    }
For a list of wild-carded names, return 0-* IDs for each one.
If no wildCardedFeedNames are provided, returns an empty map.

@param wildCardedFeedNames e.g. 'TEST_*' or 'TEST_FEED'
stroom-meta/stroom-meta-impl-db/src/main/java/stroom/meta/impl/db/MetaFeedDaoImpl.java