private Element renderedElement;
public Component(Element elem, AttributesRequire attrs) throws Exception {
Document doc = new Document("");
doc.appendElement("body");
doc.body().appendChild(elem);
renderedElement = renderTemplate(doc, attrs);
}
public Component(Element elem) throws Exception {