protected void saveAll(LinkedHashMap<String, UserProfile> profiles, final boolean saveInSession) {
        if (saveInSession) {
            LOGGER.debug("Saving profiles (session): {}", profiles);
            this.sessionStore.set(this.context, Pac4jConstants.USER_PROFILES, profiles);
        }
        LOGGER.debug("Saving profiles (request): {}", profiles);
        this.context.setRequestAttribute(Pac4jConstants.USER_PROFILES, profiles);
    }
<p>saveAll.</p>

@param profiles a {@link LinkedHashMap} object
@param saveInSession a boolean
pac4j-core/src/main/java/org/pac4j/core/profile/ProfileManager.java