JsonObject rawStatistics = response.readEntity(JsonObject.class);
return preprocessEntity(rawStatistics);
}
public JsonObject fetchMethodStatistics(String applicationName, String ejbName, String methodName) {
WebTarget target = client.target(getUri() + "{application}/{bean}/bean-methods/{method}");
Response response = target.resolveTemplate("application", applicationName).
resolveTemplate("bean", ejbName).
resolveTemplate("method", methodName).
request(MediaType.APPLICATION_JSON).get(Response.class);
if (response.getStatus() == 404) {
return null;