code: private static void startIfNeeded()
     {
        if (!STARTED)
        {
           synchronized (JCRStatisticsManager.class)
           {
              if (!STARTED)
              {
                 addTriggers();
                 ExoContainer container = ExoContainerContext.getTopContainer();
                 ManagementContext ctx = null;
                 if (container != null)
                 {
                    ctx = container.getManagementContext();
                 }
                 if (ctx == null)
                 {
                    LOG.warn("Cannot register the statistics");
                 }
                 else
                 {
                    ctx.register(new JCRStatisticsManager());
                 }
                 STARTED = true;
              }
           }
        }
     }
docs: Starts the manager if needed