CDAP-610: replace apache HttpClient by HttpURLConnection