* Initialize plugins.
* @throws ServletException
*/
protected void initPlugins() throws Exception {
log.debug("Initializing plugins");
PluginsConfig pluginsConfig = config.getPluginsConfig();
if (pluginsConfig != null) {
Iterator pluginConfigs = pluginsConfig.getPluginConfigs();
while (pluginConfigs.hasNext()) {
PluginConfig pluginConfig = (PluginConfig)pluginConfigs.next();
log.debug("Initializing plugin " + pluginConfig.getClassName());
Class c = context.getClassLoader().loadClass(pluginConfig.getClassName());
Plugin plugin = (Plugin)c.newInstance();