public class TemplateLoader {
private static final Log log = LogFactory.getLog(TemplateLoader.class);
public static RendererBase loadTemplate(String className) {
RendererBase template = null;
try{
template = (RendererBase)Class.forName(className).newInstance();
} catch (ClassNotFoundException e) {
log.error("class not found: " + className );
throw new FacesException(e);