java. Replaced HttpClient session with HttpUrlConnectionSession, fixed #256.