private static <T>void initializeKnownPlugins(final T pluginInterface,final IPluginRegistry<IPlugin<T>> registry,final List<PluginConfigItem> xmlPluginOrder,final List<Pair<IPlugin<T>,PluginStatus>> validatedPlugins,final List<Pair<IPlugin<T>,Exception>> initializedPlugins,final Set<Long> processedPlugins){
  for (  final PluginConfigItem pt : xmlPluginOrder) {
    processedPlugins.add(pt.getGUID());
    final IPlugin<T> plugin=findPlugin(validatedPlugins,pt.getGUID());
    if (plugin != null) {
      if (pt.isLoad()) {
        initializePlugin(plugin,pluginInterface,registry,initializedPlugins);
      }
 else {
        registry.addDisabledPlugin(plugin,DisabledPluginReason.NotLoaded);
      }
    }
  }
}

private static < T > void initializeKnownPlugins ( final T pluginInterface , final IPluginRegistry < IPlugin < T > > registry , final List < PluginConfigItem > xmlPluginOrder , final List < Pair < IPlugin < T > , PluginStatus > > validatedPlugins , final List < Pair < IPlugin < T > , Exception > > initializedPlugins , final Set < Long > processedPlugins ) { for ( final PluginConfigItem pt : xmlPluginOrder ) { processedPlugins . add ( pt . getGUID ( ) ) ; final IPlugin < T > plugin = findPlugin ( validatedPlugins , pt . getGUID ( ) ) ; if ( plugin != null ) { if ( pt . isLoad ( ) ) { initializePlugin ( plugin , pluginInterface , registry , initializedPlugins ) ; } else { registry . addDisabledPlugin ( plugin , DisabledPluginReason . NotLoaded ) ; } } } }
loads the plugins that are configured in the configuration file .
