public static Optional<UserProfile> isAuthenticationProfileAvailable(final JEEContext context, final SessionStore sessionStore) {
        val manager = new ProfileManager(context, sessionStore);
        return manager.getProfile();
    }
Is authentication profile available?.

@param context      the context
@param sessionStore the session store
@return the optional user profile
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/util/OidcRequestSupport.java