protected List<Credential> getCredentialFromContext(final RequestContext context) {
        val applicationContext = context.getActiveFlow().getApplicationContext();
        val credentialProvider = ApplicationContextProvider.getBean(applicationContext, CasWebflowCredentialProvider.BEAN_NAME, CasWebflowCredentialProvider.class)
            .orElseGet(() -> new DefaultCasWebflowCredentialProvider(configurationContext.getTenantExtractor()));
        return credentialProvider.extract(context);
    }
New event event.

@param id the id
@return the event
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/AbstractCasWebflowEventResolver.java