public static Stream createStreamForTesting(final StreamType type, final Feed feed, final Long effectiveMs,
                                                final long createMs) {
        final Stream stream = new Stream();

        stream.streamType = type;
        stream.feed = feed;
        stream.effectiveMs = effectiveMs;

        // When were we created
        stream.createMs = createMs;
        // Ensure an effective time
        if (stream.effectiveMs == null) {
            stream.effectiveMs = stream.createMs;
        }

        return stream;
    }
The stream we are related to.
stroom-legacy/stroom-legacy-model_6_1/src/main/java/stroom/legacy/model_6_1/Stream.java