* @param sb output string buffer
*
* @param depth current recursion depth
*/
private static void dumpJmxObject(String lead, Object obj, StringBuilder sb, int depth) {
JmxObject jmx = (JmxObject)obj;
sb.append(jmx.getName()); sb.append(":\n");
try {
MBeanInfo mi = jmx.getConn().getMBeanInfo(jmx.getName());
for (MBeanAttributeInfo mbi : mi.getAttributes()) {
try {
Object o = jmx.getConn().getAttribute(jmx.getName(), mbi.getName());
sb.append(lead);
sb.append(mbi.getName());
sb.append(" : ");
sb.append(mbi.getType());
sb.append(" = ");