private void registerMBean(){
  if (wroConfiguration.isJmxEnabled()) {
    try {
      mbeanServer=getMBeanServer();
      final ObjectName name=getMBeanObjectName();
      if (!mbeanServer.isRegistered(name)) {
        mbeanServer.registerMBean(wroConfiguration,name);
      }
    }
 catch (    final JMException e) {
      LOG.error("Exception occured while registering MBean",e);
    }
  }
}

private void registerMBean ( ) { if ( wroConfiguration . isJmxEnabled ( ) ) { try { mbeanServer = getMBeanServer ( ) ; final ObjectName name = getMBeanObjectName ( ) ; if ( ! mbeanServer . isRegistered ( name ) ) { mbeanServer . registerMBean ( wroConfiguration , name ) ; } } catch ( final JMException e ) { LOG . error ( "Exception occured while registering MBean" , e ) ; } } }
expose mbean to tell jmx infrastructure about our mbean ( only if jmxenabled is true ) .
