@Override
    public Stream<T> stream() {
        return object == null
            ? Stream.empty()
            : Stream.of(object);
    }
This is {@link DirectObjectProvider}.

@author Misagh Moayyed
@since 6.5.0
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/spring/DirectObjectProvider.java