* @return a bridge context
*/
public static BridgeContext createBridgeContext(FOUserAgent userAgent, AFPGraphics2D g2d) {
ImageManager imageManager = userAgent.getFactory().getImageManager();
SVGUserAgent svgUserAgent
= new SVGUserAgent(userAgent, new AffineTransform());
ImageSessionContext imageSessionContext = userAgent.getImageSessionContext();
FontInfo fontInfo = g2d.getFontInfo();
return new AFPBridgeContext(svgUserAgent, fontInfo, imageManager, imageSessionContext,