protected CallContext buildContext(final Config config, final FrameworkParameters parameters) {
        assertNotNull("config", config);

        assertNotNull("config.getWebContextFactory()", config.getWebContextFactory());
        val webContext = config.getWebContextFactory().newContext(parameters);
        assertNotNull("context", webContext);

        assertNotNull("config.getSessionStoreFactory()", config.getSessionStoreFactory());
        val sessionStore = config.getSessionStoreFactory().newSessionStore(parameters);
        assertNotNull("sessionStore", sessionStore);

        val profileManagerFactory = config.getProfileManagerFactory();
        assertNotNull("profileManagerFactory", profileManagerFactory);

        return new CallContext(webContext, sessionStore, profileManagerFactory);
    }
<p>buildContext.</p>

@param config a {@link Config} object
@param parameters a {@link FrameworkParameters} object
@return a {@link CallContext} object
pac4j-core/src/main/java/org/pac4j/core/engine/AbstractExceptionAwareLogic.java