I had to change visibility to ``protected`` to have ability to force usage of HttpURLConnection instead of Apache's DefaultHttpClient.