/**
* Creates a new bridge context.
*/
protected BridgeContext createBridgeContext(SVGDocument doc) {
BridgeContext result = new SVGBridgeContext();
result.setDocumentLoader
(new BufferedDocumentLoader
(new SVGDocumentLoader(userAgent.getXMLParserClassName())));
result.setGVTFactory(ConcreteGVTFactory.getGVTFactoryImplementation());
result.setParserFactory(parserFactory);
result.setUserAgent(userAgent);
result.setGraphicsNodeRableFactory
(new ConcreteGraphicsNodeRableFactory());
((SVGBridgeContext)result).setInterpreterPool
(new ConcreteInterpreterPool(doc));
result.setCurrentViewport(new UserAgentViewport(userAgent));
return result;
}