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-legacy/stroom-legacy-model_6_1/src/main/java/stroom/legacy/model_6_1/StreamUtil.java