public static Pair<String, ImageArchiveManifestEntry> findEntryByRepoTagPattern(Pattern repoTagPattern, ImageArchiveManifest manifest) throws PatternSyntaxException {
        if(repoTagPattern == null || manifest == null) {
            return null;
        }

        Matcher matcher = repoTagPattern.matcher("");

        for(ImageArchiveManifestEntry entry : manifest.getEntries()) {
            for(String entryRepoTag : entry.getRepoTags()) {
                if(matcher.reset(entryRepoTag).find()) {
                    return Pair.of(entryRepoTag, entry);
                }
            }
        }

        return null;
    }
Search the manifest for an entry that has a repository and tag matching the provided pattern.

@param repoTagPattern the repository and tag to search (e.g. busybox:latest).
@param manifest the manifest to be searched
@return a pair containing the matched tag and the entry found, or null if no match.
src/main/java/io/fabric8/maven/docker/util/ImageArchiveUtil.java