@SuppressWarnings("unchecked")
List<String> pluginClassNames = (List<String>) config.get("plugins");
if(pluginClassNames != null && !pluginClassNames.isEmpty()){
for(String className: pluginClassNames){
Plugin p = (Plugin) ClassUtils.newInstance(className);
log.debug("Initializing plugin: {}", p.getClass().getName());
p.initialize(registry);
}
}
//Construct RendererImpl after initializing all plugins
this.renderer = new RendererImpl(this, registry.getTemplateLoaders());