question: public static void registerSpaceMBean ( String spaceName , SpaceImpl spaceImpl ) { MBeanServer mBeanServer = getMBeanServer ( spaceImpl . getContainerName ( ) ) ; if ( mBeanServer == null ) return ; if ( m_MBeansRepository . containsKey ( spaceImpl . getServiceName ( ) ) ) return ; try { IJSpace remoteSpaceProxy = spaceImpl . getSingleProxy ( ) ; JMXSpace mbean = new JMXSpace ( remoteSpaceProxy , JSPACE_MBEAN_DESCR_URL ) ; ObjectName objName = ObjectNameFactory . buildObjectName ( DEFAULT_DOMAIN , mbean . getType ( ) , spaceImpl . getContainerName ( ) + '-' + spaceName ) ; m_MBeansRepository . put ( spaceImpl . getServiceName ( ) , mBeanServer . registerMBean ( mbean , objName ) ) ; JMXSpaceExt mbeanExt = new JMXSpaceExt ( remoteSpaceProxy , mbean . m_spaceConfig , JSPACE_EXT_MBEAN_DESCR_URL ) ; ObjectName objNameExt = ObjectNameFactory . buildObjectName ( DEFAULT_DOMAIN , mbeanExt . getType ( ) , spaceImpl . getContainerName ( ) + '-' + spaceName ) ; m_MBeansRepository . put ( spaceImpl . getServiceName ( ) + "Ext" , mBeanServer . registerMBean ( mbeanExt , objNameExt ) ) ; if ( _logger . isLoggable ( Level . CONFIG ) ) { _logger . config ( "\nSpace <" + spaceImpl . getServiceName ( ) + "> MBean was registered successfully.\n" ) ; } } catch ( InstanceAlreadyExistsException e ) { if ( _logger . isLoggable ( Level . CONFIG ) ) { _logger . config ( "Space MBean is already registered for <" + spaceImpl . getServiceName ( ) + ">" ) ; } } catch ( Exception ex ) { if ( _logger . isLoggable ( Level . WARNING ) ) { _logger . log ( Level . WARNING , "Failed to register MBean for <" + spaceImpl . getServiceName ( ) + "> space." , ex ) ; } } }
target:  Create and register management bean for specified JSpace.