/** * Get the message rate for the given jolokia request URL. * * @param requestURL the request URL for message rate * @return the message rate * @throws JSONException */ private Double getMessageRate(String requestURL) throws JSONException { String response = restTemplate.getForObject(requestURL, String.class).toString(); JSONObject jObject = new JSONObject(response); JSONObject value = jObject.getJSONObject("value"); return (Double) value.getJSONObject((String) value.names().get(0)).get("MeanSendRate"); }