protected Map<String, Object> getRenderedUserProfile(final Map<String, Object> model,
                                                         final OAuth20AccessToken accessToken,
                                                         final HttpServletResponse response) {
        val type = determineUserProfileType(accessToken);
        LOGGER.debug("User profile view type for client [{}] is set to [{}]", accessToken.getClientId(), type);
        if (type == OAuthCoreProperties.UserProfileViewTypes.FLAT) {
            return flattenUserProfile(model);
        }
        return model;
    }
This is {@link OAuth20DefaultUserProfileViewRenderer}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/views/OAuth20DefaultUserProfileViewRenderer.java