@Override
    public T getIfAvailable() throws BeansException {
        return 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