code: public static Map<String, ImageArchiveManifestEntry> findEntriesByRepoTagPattern(Pattern repoTagPattern, ImageArchiveManifest manifest) throws PatternSyntaxException {
          Map<String, ImageArchiveManifestEntry> entries = new LinkedHashMap<>();
  
          if(repoTagPattern == null || manifest == null) {
              return entries;
          }
  
          Matcher matcher = repoTagPattern.matcher("");
  
          for(ImageArchiveManifestEntry entry : manifest.getEntries()) {
              for(String entryRepoTag : entry.getRepoTags()) {
                  if(matcher.reset(entryRepoTag).find()) {
                      entries.putIfAbsent(entryRepoTag, entry);
                  }
              }
          }
  
          return entries;
      }
docs: 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.