IConnectionWrapper w = (IConnectionWrapper)parentElement;
Root r = w.getRoot();
if( r != null ) {
if (r.containsDomain("org.apache.servicemix")) {
ServiceMixFacade facade = new JmxTemplateServiceMixFacade(new JmxPluginJmxTemplate(r.getConnection()));
ServiceMixNode smx = new ServiceMixNode(r, facade);
return new Object[]{smx};
}
}
} else if (parentElement instanceof NodeSupport) {
NodeSupport contexts = (NodeSupport)parentElement;