Configuration viewRendererConfiguration = (Configuration) renderElements.next();
String renderName = viewRendererConfiguration.getAttribute("name");
String className = viewRendererConfiguration.getAttribute("classname");
ViewRenderer renderer = (ViewRenderer) cl.loadClass(className).newInstance();
renderer.setSiteContext(siteContext);
renderer.loadConfiguration(viewRendererConfiguration);
renderer.init();
Debug.logInfo("Added renderer [" + renderName + "] - [" + className + "]", module);
renderers.put(renderName, renderer);
}
}