public static DXFParser createDefaultParser() {
public static Parser createDefaultParser() {
    public static DXFParser createDefaultParser() {        DXFParser parser = new DXFParser();        Handler handler;        handler = new DXFHeaderSectionHandler();        parser.addHandler(handler);        // the blocks handler        HandlerManager handlerManager = new DXFBlocksSectionHandler();        parser.addHandler(handlerManager);        Handler h = new DXFLineHandler();        handlerManager.addHandler(h);        h = new DXFCircleHandler();        handlerManager.addHandler(h);        h = new DXFArcHandler();        handlerManager.addHandler(h);        h = new DXFPolylineHandler();        handlerManager.addHandler(h);        h = new DXFLWPolylineHandler();        handlerManager.addHandler(h);        h = new DXFMTextHandler();        handlerManager.addHandler(h);        h = new DXFTextHandler();        handlerManager.addHandler(h);        h = new DXFInsertHandler();        handlerManager.addHandler(h);        h = new DXFEllipseHandler();        handlerManager.addHandler(h);        h = new DXFSolidHandler();        handlerManager.addHandler(h);        h = new DXFTraceHandler();        handlerManager.addHandler(h);        h = new DXFDimensionHandler();        handlerManager.addHandler(h);        h = new DXFHatchHandler();        handlerManager.addHandler(h);        h = new DXFImageHandler();        handlerManager.addHandler(h);        h = new DXF3DFaceHandler();        handlerManager.addHandler(h);        h = new DXFRayHandler();        handlerManager.addHandler(h);        h = new DXFXLineHandler();        handlerManager.addHandler(h);        h = new DXFRegionHandler();        handlerManager.addHandler(h);        h = new DXFBodyHandler();        handlerManager.addHandler(h);        h = new DXF3DSolidHandler();        handlerManager.addHandler(h);        h = new DXFSplineHandler();        handlerManager.addHandler(h);        h = new DXFLeaderHandler();        handlerManager.addHandler(h);        h = new DXFToleranceHandler();        handlerManager.addHandler(h);        // the table handler        handlerManager = new DXFTableSectionHandler();        parser.addHandler(handlerManager);        handler = new DXFLayerTableHandler();        handlerManager.addHandler(handler);        handler = new DXFLineTypeTableHandler();        handlerManager.addHandler(handler);        handler = new DXFDimensionStyleTableHandler();        handlerManager.addHandler(handler);        handler = new DXFStyleTableHandler();        handlerManager.addHandler(handler);        handler = new DXFViewportTableHandler();        handlerManager.addHandler(handler);        handler = new DXFViewTableHandler();        handlerManager.addHandler(handler);        // the entity section handler        handlerManager = new DXFEntitiesSectionHandler();        parser.addHandler(handlerManager);        // the entity handlers        h = new DXFLineHandler();        handlerManager.addHandler(h);        h = new DXFCircleHandler();        handlerManager.addHandler(h);        h = new DXFArcHandler();        handlerManager.addHandler(h);        h = new DXFPolylineHandler();        handlerManager.addHandler(h);        h = new DXFLWPolylineHandler();        handlerManager.addHandler(h);        h = new DXFMTextHandler();        handlerManager.addHandler(h);        h = new DXFTextHandler();        handlerManager.addHandler(h);        h = new DXFInsertHandler();        handlerManager.addHandler(h);        h = new DXFEllipseHandler();        handlerManager.addHandler(h);        h = new DXFSolidHandler();        handlerManager.addHandler(h);        h = new DXFTraceHandler();        handlerManager.addHandler(h);        h = new DXFDimensionHandler();        handlerManager.addHandler(h);        h = new DXFHatchHandler();        handlerManager.addHandler(h);        h = new DXFImageHandler();        handlerManager.addHandler(h);        h = new DXF3DFaceHandler();        handlerManager.addHandler(h);        h = new DXFRayHandler();        handlerManager.addHandler(h);        h = new DXFXLineHandler();        handlerManager.addHandler(h);        h = new DXFRegionHandler();        handlerManager.addHandler(h);        h = new DXFBodyHandler();        handlerManager.addHandler(h);        h = new DXF3DSolidHandler();        handlerManager.addHandler(h);        h = new DXFSplineHandler();        handlerManager.addHandler(h);        h = new DXFLeaderHandler();        handlerManager.addHandler(h);        h = new DXFToleranceHandler();        handlerManager.addHandler(h);        // the OBJECTS section        handlerManager = new DXFObjectsSectionHandler();        h = new DXFImageDefHandler();        handlerManager.addHandler(h);        parser.addHandler(handlerManager);        return parser;    }