public static Map<String, ImageArchiveManifestEntry> mapEntriesById(Iterable<ImageArchiveManifestEntry> entries) {
        Map<String, ImageArchiveManifestEntry> mapped = new LinkedHashMap<>();

        for(ImageArchiveManifestEntry entry : entries) {
            mapped.put(entry.getId(), entry);
        }

        return mapped;
    }
Build a map of entries by id from an iterable of entries.

@param entries
@return a map of entries by id
src/main/java/io/fabric8/maven/docker/util/ImageArchiveUtil.java