doc.toSAX(this.xmlConsumer, null);
SAXGenerator generator = new org.kabeja.svg.SVGGenerator(); generator.setProperties(new HashMap()); generator.generate(doc, this.xmlConsumer);
    public void generate()        throws IOException, SAXException, ProcessingException {        try {            this.parser.parse(this.inputSource.getInputStream(), this.encoding);            DXFDocument doc = parser.getDocument();            // the xmlConsumer the next component in            // the pipeline from parent class            doc.toSAX(this.xmlConsumer, null);            // all is done release the source            this.resolver.release(this.inputSource);            // a little help for the GC            ((Handler) this.parser).releaseDXFDocument();            doc = null;        } catch (DXFParseException e) {            throw new ProcessingException(e);        } catch (IOException e) {            throw new ProcessingException(e);        }    }