}
public Component(String path, AttributesRequire attrs) throws Exception {
Configuration conf = Context.getCurrentThreadContext().getConfiguration();
TemplateResolver templateResolver = conf.getTemplateResolver();
Template template = templateResolver.findTemplate(path);
renderedElement = renderTemplate(template.getDocumentClone(), attrs);
}