protected void saveUserProfile(final CallContext ctx, final Config config, final UserProfile profile,
                                   final boolean saveProfileInSession, final boolean multiProfile, final boolean renewSession) {
        val manager = ctx.profileManagerFactory().apply(ctx.webContext(), ctx.sessionStore());
        if (profile != null) {
            manager.save(saveProfileInSession, profile, multiProfile);
            if (renewSession) {
                renewSession(ctx, config);
            }
        }
    }
<p>saveUserProfile.</p>

@param ctx a {@link CallContext} object
@param config a {@link Config} object
@param profile a {@link UserProfile} object
@param saveProfileInSession a boolean
@param multiProfile a boolean
@param renewSession a boolean
pac4j-core/src/main/java/org/pac4j/core/engine/DefaultCallbackLogic.java