private static Map<FeedKey, List<ZipEntryGroup>> readEntriesFile(final Path entriesFile) {
        // Read in the allowed (i.e. passed feed status check) zip entry groups.
        // Use the interner so common FeedKeys use the same instance
        if (Files.isRegularFile(entriesFile)) {
            return ZipEntryGroup.read(entriesFile)
                    .stream()
                    .collect(Collectors.groupingBy(
                            ZipEntryGroup::getFeedKey,
                            Collectors.toList()));
        } else {
            throw new RuntimeException(LogUtil.message(
                    "Entries file {} not found. Should not get here with no entries file", entriesFile));
        }
    }
Pkg private to ease testing. splitDirConsumer also there to aid testing.
stroom-proxy/stroom-proxy-app/src/main/java/stroom/proxy/app/handler/ZipSplitter.java