private String getString(final String resourceName) {
        try {
            final InputStream is = StroomPipelineTestFileUtil.getInputStream(resourceName);

            final byte[] buffer = new byte[BUF_SIZE];
            int len;
            final ByteArrayOutputStream baos = new ByteArrayOutputStream();
            while ((len = is.read(buffer)) != -1) {
                baos.write(buffer, 0, len);
            }

            String str = baos.toString();
            str = str.replaceAll("\r", "");
            return str.trim();
        } catch (final IOException e) {
            e.printStackTrace();
        }

        return null;
    }
Consume the fastInfosetValue using the various classes used in ref data lookup
stroom-pipeline/src/test/java/stroom/pipeline/refdata/TestReferenceDataFilter.java