public void close(final HttpResponse response) {
        if (response instanceof final CloseableHttpResponse closeableHttpResponse) {
            FunctionUtils.doAndHandle(__ -> closeableHttpResponse.close());
        }
    }
Close the response.

@param response the response to close
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/http/HttpUtils.java