private List<Module> parseJsonToModule(String json) {
ObjectMapper mapper = new ObjectMapper();
try {
JMXResult jmxResult = mapper.readValue(json,
new TypeReference<JMXResult>() {
});
return jmxResult.getValue().getModules();
}
catch (JsonParseException parseException) {
throw new IllegalStateException(parseException.getMessage(), parseException);
}
catch (JsonMappingException mapException) {