Object batikTest = Class.forName("org.apache.batik.swing.JSVGCanvas")
Class.forName("org.apache.batik.swing.JSVGCanvas")
    public void addSVGMenuItem(JMenu menu) {        try {            Object obj = com.bbn.openmap.util.ComponentFactory.create("com.bbn.openmap.image.SVGFormatter");            if (obj != null) {                // This is a test to see if the batik package is                // available. If it isn't, this statement should                // throw an exception, and the SVG option will not be                // added to the SaveAs Menu item.                Object batikTest = Class.forName("org.apache.batik.swing.JSVGCanvas")                        .newInstance();                menu.add(new SaveAsImageMenuItem("SVG", (AbstractImageFormatter) obj));                return;            }        } catch (ClassNotFoundException cnfe) {        } catch (InstantiationException ie) {        } catch (IllegalAccessException iae) {        } catch (NoClassDefFoundError ncdfe) {        }        if (Debug.debugging("basic")) {            Debug.output("SVG not added to the Save As options, because Batik was not found in classpath.");        }    }