private static AttributeMap mergeAttributeMaps(final ZipFile zipFile,
                                                   final ZipArchiveEntry entry,
                                                   final AttributeMap headerAttributeMap) {

        return AttributeMapUtil.mergeAttributeMaps(
                headerAttributeMap,
                ThrowingConsumer.unchecked(entryAttributeMap ->
                        AttributeMapUtil.read(zipFile.getInputStream(entry), entryAttributeMap)));
    }
Static and pkg private to aid testing
stroom-proxy/stroom-proxy-app/src/main/java/stroom/proxy/app/handler/ZipReceiver.java