question: public static void registerMBean ( ConnectionInfo connectionInfo , Database database ) throws JMException { String path = connectionInfo . getName ( ) ; if ( ! MBEANS . containsKey ( path ) ) { MBeanServer mbeanServer = ManagementFactory . getPlatformMBeanServer ( ) ; String name = database . getShortName ( ) ; ObjectName mbeanObjectName = getObjectName ( name , path ) ; MBEANS . put ( path , mbeanObjectName ) ; DatabaseInfo info = new DatabaseInfo ( database ) ; Object mbean = new DocumentedMBean ( info , DatabaseInfoMBean . class ) ; mbeanServer . registerMBean ( mbean , mbeanObjectName ) ; } }
target:  Registers an MBean for the database.