@Override
    public SecurityContext loadContext(final HttpRequestResponseHolder requestResponseHolder) {
        val request = requestResponseHolder.getRequest();
        if (containsContext(request)) {
            val authentication = Objects.requireNonNull(getInProgressAuthentication(request));
            val principal = authentication.getPrincipal();
            return SecurityContextUtils.createSecurityContext(principal, request);
        }
        return securityContextHolderStrategy.createEmptyContext();
    }
This is {@link CasWebflowSecurityContextRepository}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-webconfig/src/main/java/org/apereo/cas/web/security/CasWebflowSecurityContextRepository.java