public static <T> Stream<T> stream(final T... items) {
        if (items == null || items.length == 0) {
            return Stream.empty();
        } else {
            return Arrays.stream(items);
        }
    }
Returns a {@link Stream<T>} if items is non-null else returns an empty {@link Stream<T>}
stroom-util-shared/src/main/java/stroom/util/shared/NullSafe.java