code: private void initMBeans(Configuration pConfig) {
          int maxEntries = pConfig.getAsInt(HISTORY_MAX_ENTRIES);
          int maxDebugEntries = pConfig.getAsInt(DEBUG_MAX_ENTRIES);
  
  
          historyStore = new HistoryStore(maxEntries);
          debugStore = new DebugStore(maxDebugEntries, pConfig.getAsBoolean(DEBUG));
  
          try {
              localDispatcher.initMBeans(historyStore, debugStore);
          } catch (NotCompliantMBeanException e) {
              intError("Error registering config MBean: " + e, e);
          } catch (MBeanRegistrationException e) {
              intError("Cannot register MBean: " + e, e);
          } catch (MalformedObjectNameException e) {
              intError("Invalid name for config MBean: " + e, e);
          }
      }
docs: init various application wide stores for handling history and debug output.