protected HttpResponse executeRequest(final AccountRegistrationRequest request) throws Exception {
        val headers = new HashMap<String, String>();
        headers.put(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE);
        headers.put(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON_VALUE);
        headers.putAll(properties.getHeaders());

        val exec = HttpExecutionRequest.builder()
            .basicAuthPassword(properties.getBasicAuthPassword())
            .basicAuthUsername(properties.getBasicAuthUsername())
            .method(HttpMethod.POST)
            .url(properties.getUrl())
            .headers(headers)
            .entity(MAPPER.writeValueAsString(request))
            .httpClient(httpClient)
            .build();
        return HttpUtils.execute(exec);
    }
This is {@link RestfulAccountRegistrationProvisioner}.

@author Misagh Moayyed
@since 6.5.0
support/cas-server-support-account-mgmt-core/src/main/java/org/apereo/cas/acct/provision/RestfulAccountRegistrationProvisioner.java