code: public static void populateMBeanServer() {
  		if(populated)
  			return;
  		
  		synchronized (lock) {
  			populated = true;
  			
  			if (serverMonitor == null) {
  				logger.info("Creating and registering the ServerMonitor MXBean");
  				try { serverMonitor = new ServerMonitor(true); } catch(Exception ex) {
  					logger.warn("Can't publish ServerMonitor MXBean.", ex);
  					logger.warn("Nonpublic instance of the ServerMonitor MXBean will be used in current session.");
  					serverMonitor = new ServerMonitor(false);
  				}
  			}
  			if (storageManager == null) {
  				logger.info("Creating and registering the StorageManager MXBean");
  				try{ storageManager = new StorageManager(true); } catch(Exception ex) {
  					logger.warn("Can't publish StorageManager MXBean.", ex);
  					logger.warn("Nonpublic instance of the StorageManager MXBean will be used in current session.");
  					storageManager = new StorageManager(false);
  				}
  			}
  		}
  	}
docs: Creates and registers MBeans/MXBeans.