code: public static void buildProducers() {
  
          // Registering decorator for mbean stats
          DecoratorRegistryFactory.getDecoratorRegistry().addDecorator(
                  MBeanStats.class,
                  new GeneralMBeanDecorator()
          );
  
          for (MBeanServer server : MBeanServerFactory.findMBeanServer(null))
              for (final ObjectInstance mBean : server.queryMBeans(null, null))
                  if(isMBeanRequired(mBean)) {
  
                      SimpleStatsProducer<MBeanStats> producer = buildProducer(server, mBean);
  
                      if (producer != null) {
                          producerRegistry.registerProducer(producer);
                          log.debug("Registered new producer for " + mBean.getObjectName().getCanonicalName() + "mbean");
                      }
  
                  }
  
      }
docs: Builds all mbean producer that required by mbean producers
  configuration.