Set set = kernel.listGBeans(query);
for (Iterator it = set.iterator(); it.hasNext();) {
AbstractName name = (AbstractName) it.next();
addGBean(name);
}
kernel.getLifecycleMonitor().addLifecycleListener(listener = new LifecycleAdapter() {
public void running(AbstractName abstractName) {
addGBean(abstractName);
}
public void stopping(AbstractName abstractName) {