ObjectMapper jmxObjectMapper = new ObjectMapper();
jmxObjectMapper.configure(DeserializationConfig.Feature.USE_ANNOTATIONS, false);
ObjectReader jmxObjectReader = jmxObjectMapper.reader(JMXMetricHolder.class);
JMXMetricHolder metricHolder = null;
try {
metricHolder = jmxObjectReader.readValue(jmxStream);
} catch (IOException e) {
logger.error(String.format("Malformed jmx data from %s. Error %s", jmxUrl, e.getMessage()));
}
Map<String, Map<String, Object>> categories = new HashMap<String, Map<String, Object>>();