Replaced ClientResource of  Restlet on RestTemplate of Spring, as ClientResource not read the response body to the end.