BZ-1146957 - Java REST Client fails after every attempt (timeout * 1000 needed)

(cherry picked from commit 5f82e2c0fd5a3a4305811986a47bc2a2a314a262)