if(jmxServer.queryNames(objectName, null).size() == 0) {
resultLog.warn("MBean not found: {}", objectName);
} else {
final Object value = jmxServer.getAttribute(objectName, attributeName);
resultLog.debug("{} {} returns {}", mbeanName, attributeName, value);
new SimpleConstraintChecker().check(value, constraint, resultLog);
}
} catch(final Exception e) {
log.warn("JMX attribute {}/{} check failed: {}", new Object []{ mbeanName, attributeName, e});
resultLog.healthCheckError("JMX attribute check failed: {}", e);
}