static long writeStreamToFile(final InputStream inputStream,
                                  final Path zipFilePath) {
        return LOGGER.logDurationIfDebugEnabled(() -> {
            try (final ByteCountInputStream byteCountInputStream = ByteCountInputStream.wrap(inputStream)) {
                Files.copy(byteCountInputStream, zipFilePath);
                return byteCountInputStream.getCount();
            } catch (IOException e) {
                throw new UncheckedIOException(LogUtil.message(
                        "Error writing inputStream to file {}: {}",
                        zipFilePath, LogUtil.exceptionMessage(e)), e);
            }
        }, () -> LogUtil.message("writeStreamToFile() - zipFilePath: {}", zipFilePath));
    }
@return The uncompressed size of the entry
stroom-proxy/stroom-proxy-app/src/main/java/stroom/proxy/app/handler/ZipReceiver.java