public String getStreamType() {
        if (streamType == null) {
            if (reference) {
                streamType = StreamTypeNames.RAW_REFERENCE;
            } else {
                streamType = StreamTypeNames.RAW_EVENTS;
            }
        }

        return streamType;
    }
@return A new builder for creating a {@link DocRef} for this document's type.
stroom-core-shared/src/main/java/stroom/feed/shared/FeedDoc.java