private static ResponseEntity<String> buildResponseEntity(final String result, final HttpServletResponse response,
                                                              final OidcRegisteredService registeredService) {
        val context = Map.<String, Object>of(
            "Client ID", registeredService.getClientId(),
            "Service", registeredService.getName(),
            "Content Type", response.getContentType());
        LoggingUtils.protocolMessage("OpenID Connect User Profile Response", context, result);
        
        val headers = new HttpHeaders();
        headers.put(HttpHeaders.CONTENT_TYPE, CollectionUtils.wrapList(response.getContentType()));
        return ResponseEntity.ok().headers(headers).body(result);
    }
This is {@link OidcUserProfileViewRenderer}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/profile/OidcUserProfileViewRenderer.java