Refactored to use AbstractHttpClientPlugin.