// since the SearchFactory is mutable we might have an already existing MBean which we have to unregister first
if ( JMXRegistrar.isNameRegistered( objectName ) ) {
JMXRegistrar.unRegisterMBean( objectName );
}
IndexControl indexCtrlBean = new IndexControl(
configuration.getProperties(),
searchFactoryImplementor.getServiceManager()
);
JMXRegistrar.registerMBean( indexCtrlBean, objectName );
indexControlMBeanName = objectName;