code: void bootstrapPlugin(IProducerRegistry producerRegistry) throws PHPPluginBootstrapException {
  
          config.setConfigChangedNotifier(new ConfigChangedNotifierImpl());
          MappersRegistry mappersRegistry = new MappersRegistry();
          listener = new OnProducerDataReceivedListenerImpl(mappersRegistry, producerRegistry);
  
          for (MapperConfig mapperConfig : config.getMappers()) {
  
              try {
  
                  mappersRegistry.registerMapper(
                          mapperConfig.getMapperId(),
                          ((Mapper) createInstance(mapperConfig.getMapperClass()))
                  );
  
              } catch (ClassNotFoundException e) {
                  throw new PHPPluginBootstrapException(
                          "Mapper class " + mapperConfig.getMapperClass() + " not found", e
                  );
              } catch (NoSuchMethodException | IllegalAccessException e) {
                  throw new PHPPluginBootstrapException(
                          "Mapper class must have default public constructor", e
                  );
              } catch (InvocationTargetException e) {
                  throw new PHPPluginBootstrapException(
                          "Mapper constructor throws exception", e
                  );
              } catch (InstantiationException e) {
                  throw new PHPPluginBootstrapException(
                          "Failed to instance mapper of class " + mapperConfig.getMapperClass(), e
                  );
              } catch (ClassCastException e) {
                  throw new PHPPluginBootstrapException(
                          "Class " + mapperConfig.getMapperClass() +
                                  " is not instance of " + Mapper.class.getCanonicalName(), e
                  );
              }
  
          }
  
          boolean enableConnectorsInitOnStartup
                  = PROPERTY_TRUE_VALUE.equals(startupProperties.getProperty(PROPERTY_CONNECTORS_FORCE_ENABLED));
  
         configureConnectors(enableConnectorsInitOnStartup);
  
      }
docs: Bootstraps Moskito PHP plugin
  
  @param producerRegistry producer registry to use
  @throws PHPPluginBootstrapException on invalid configuration