Modified JHttpCilent to JHttpClient