@Override
    public AccountRegistrationResponse provision(final AccountRegistrationRequest request) throws Exception {
        val response = new AtomicReference<HttpResponse>();
        try {
            response.set(executeRequest(request));
            return FunctionUtils.doIfNull(response.get(),
                    AccountRegistrationResponse::new,
                    () -> buildAccountRegistrationResponse(response.get()))
                .get();
        } finally {
            HttpUtils.close(response.get());
        }
    }
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