// Set up an MBeanListener so that we don't register MBeans unless
// rootParentName actually refers to a registered MBean.
// Note that the listener will register the root either now,
// or once the root parent is available.
callback = new RootParentListener() ;
rpListener = new MBeanListener( mom.getMBeanServer(),
rootParentName, callback ) ;
rpListener.startListening() ;
}
}
}