public Object getObjectInstance(Object mapInstance, Name nameIgnored,
Context nameCtxIgnored, Hashtable<?, ?> environmentIgnored)
throws Exception {
Map map = (Map) mapInstance;
HTMLEditorKit kit = new HTMLEditorKit();
HTMLDocument doc = (HTMLDocument) kit.createDefaultDocument();
Element root = doc.getDefaultRootElement();//html
Element element =root.getElement(0);//body
//doc.insertAfterStart(element, "<table><tr><td>anfang</td><td>ende</td></tr><tr><td>anfang2</td><td>ende2</td></tr></table>");
doc.insertAfterStart(element, "<table/>");
Element table = element.getElement(0);//table