@Override
        public InputStream getInputStream() {
            if (inputStream == null) {
                final Map<String, byte[]> typeMap = getFileData().get(meta.getId());
                final byte[] data = typeMap.get(streamType);

                if (data == null) {
                    throw new IllegalStateException("Some how we have null data stream in the stream store");
                }
                inputStream = new SeekableByteArrayInputStream(data);
            }
            return inputStream;
        }
Gets the output stream for this stream target.
stroom-data/stroom-data-store-mock/src/main/java/stroom/data/store/mock/MockStore.java