### Question:
SvgDocumentProcessor { public void process(Document document, SvgElementProcessor handler) { this.handler = handler; this.handler.setDocument(document); Element root = document.getDocumentElement(); internalProcessElement(root); }  void process(Document document, SvgElementProcessor handler);  }### Answer:
@Test public void test() { InputStream svgStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("test-svguse.svg"); DocumentParser documentParser = new DocumentParser(); Document document = documentParser.parse(svgStream); SvgDocumentProcessor svgDocumentProcessor = new SvgDocumentProcessor(); svgDocumentProcessor.process(document, new SvgConfigureIdProcessor()); svgDocumentProcessor.process(document, new SvgTransformProcessor()); svgDocumentProcessor.process(document, new SvgUseProcessor()); svgDocumentProcessor.process(document, new SvgLogProcessor()); }