private void addNodes(Mbean mbean) { List newNodeList = MBeansHelper.getMBeansTreeElements(mbean); newNodeList.add(mbean); String rootItemId = addNodes(newNodeList); // add optional comp attributes, if there are any if (mbean.getCompAttrib() != null && !mbean.getCompAttrib().isEmpty()) { for (CompAttrib eachCompAttrib : mbean.getCompAttrib()) { addNode(rootItemId, eachCompAttrib, false); } } }
private void add(Mbean bean) { String objectName = bean.getObjectname(); if (Strings.isNullOrEmpty(objectName)) return; if (!objectName.contains(":")) return; addNodes(bean); mbeans.add(bean); }