public static ByteSlice getByteSlice(final String string) {
        if (string == null) {
            return ZERO_BYTES;
        }
        return new ByteSlice(string.getBytes(DEFAULT_CHARSET));
    }
Wrap a stream and don't let it close.
stroom-util/src/main/java/stroom/util/io/StreamUtil.java