response = webTarget.request(MediaType.APPLICATION_JSON)\r
.post(Entity.entity(content, MediaType.APPLICATION_JSON));\r
} catch (Exception e) {\r
- throw new CorrelationException("Failed to connect dcae.", e);\r
+ throw new CorrelationException("Failed to connect to DCAE.", e);\r
}\r
return checkStatus(response);\r
}\r
\r
private boolean checkStatus(Response response) {\r
- return (response.getStatus() == HttpStatus.SC_OK) ? true : false;\r
+ return response.getStatus() == HttpStatus.SC_OK;\r
}\r
}\r