code: public static <T> void registerPluginType(String pluginType, StatsFactory statsFactory, StatusFetcherFactory<T> statusFetcherFactory, StatusParser<T,StatusData> parser) {
          PluginTypeConfiguration conf = new PluginTypeConfiguration<>(statsFactory, statusFetcherFactory, parser);
          PluginTypeConfiguration previous = registry.putIfAbsent(pluginType, conf);
          if (previous != null) {
              getLogger().warn("Registry already have mapping for plugin type '"+pluginType+"'!");
          }
      }
docs: Register plugin type and associate given factories with it.
  @param pluginType plugin type: "apache"/"nginx"/etc..
  @param statsFactory factory that creates corresponding stats.
  @param statusFetcherFactory factory that creates {@link StatusFetcher} for the given plugin type.
  @param parser parser instance that can parse status for the given plugin type.
  @param <T> type of object that StatusFetcher produces and StatusParser parses.