private static Map<String, String> convertHttpFieldsToMap(HttpFields httpFields) {
        Map<String, String> headers = new HashMap<>();

        if (httpFields == null || httpFields.size() == 0)
            return headers;

        for (HttpField field : httpFields) {
            headers.put(field.getName(), field.getValue());
        }

        return headers;
    }
Convert response headers from Jetty format ({@link HttpFields}) to a simple {@link Map}
@param httpFields the response headers
@return a {@link Map} containing the response headers
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/RestClient.java