public void writeComponentElement(JRComponentElement componentElement) throws IOException
{
writer.startElement(JRXmlConstants.ELEMENT_componentElement, getNamespace());
writeReportElement(componentElement);
ComponentKey componentKey = componentElement.getComponentKey();
Component component = componentElement.getComponent();
ComponentXmlWriter componentXmlWriter = ComponentsEnvironment.
getComponentManager(componentKey).getComponentXmlWriter();
componentXmlWriter.writeToXml(componentKey, component, this);