public static void close(final InputStream inputStream) {
        try {
            if (inputStream != null) {
                inputStream.close();
            }
        } catch (final IOException e) {
            throw new UncheckedIOException(e);
        }
    }
Wrap a stream and don't let it close.
stroom-util/src/main/java/stroom/util/io/StreamUtil.java