public UserDTO searchUserJson(String name) throws IOException {
String json = client.path("/users/search").queryParam("name", name).get(String.class);
ObjectMapper mapper = new ObjectMapper();
try {
UserDTO user = mapper.readValue(json, UserDTO.class);
return user;
} catch (JsonParseException e) {
logger.error("JSON response error:" + json, e);
} catch (JsonMappingException e) {
logger.error("JSON response error:" + json, e);