Use Java HttpURLConnection and CookieManager. Discard my own CookierManager
Refactored Log4jUtils