}
Element toXml(AbstractReportTable table){
XStream xs = ReportTableFactory.initXStream();
JDomWriter writer = new JDomWriter();
xs.marshal(table, writer);
Element target = (Element) writer.getTopLevelNodes().get(0);
target = Converter.asXStreamSubElement( target, REPORT_TABLE_ELEMENT_NAME, table.getClass());
target.setAttribute(ATTRIBUTE_NAME_ID, String.valueOf(table.getType().getId()));
return target;
}