if( r != null ) {
if (r.containsDomain("osgi.core")) {
try {
JmxPluginJmxTemplate jmxTemplate = new JmxPluginJmxTemplate(r.getConnection());
OsgiFacade facade = new OsgiFacade(jmxTemplate);
BundlesNode bundles = new BundlesNode(r, facade);
return new Object[]{bundles};
} catch (MalformedObjectNameException ex) {
KarafJMXPlugin.getLogger().error(ex);
}
}