Switched from Restlet to Apache HttpClient