private String[] getAuditResourceFromResponseEntity(final ResponseEntity entity) {
        val headers = entity.getHeaders();
        val values = new HashMap<>();
        values.put("status", entity.getStatusCode().value() + "-" + HttpStatus.valueOf(entity.getStatusCode().value()));
        val location = headers.getLocation();
        if (location != null) {
            values.put("location", location);
        }
        if (this.includeEntityBody && entity.getBody() != null) {
            values.put("body", entity.getBody().toString());
        }
        return new String[]{auditFormat.serialize(values)};
    }
This is {@link RestResponseEntityAuditResourceResolver}.

@author Misagh Moayyed
@since 5.3.0
core/cas-server-core-rest-api/src/main/java/org/apereo/cas/rest/audit/RestResponseEntityAuditResourceResolver.java