SVGUtils.addAttribute(attr, "id", SVGUtils.validateID(getName()));
SVGUtils.addAttribute(attr, SVGConstants.XML_ID, SVGUtils.validateID(getName()));
    public void toSAX(ContentHandler handler, Map svgContext)        throws SAXException {        AttributesImpl attr = new AttributesImpl();        SVGUtils.addAttribute(attr, "id", SVGUtils.validateID(getName()));        // SVGUtils.addAttribute(attr,"stroke-width","0.1");        // String b = bounds.getMinimumX()+"        // "+doc.translateY(bounds.getMinimumY())+" "+bounds.getWidth()+"        // "+bounds.getHeight();        // the viewBox is needed otherwise the block is not visible        // SVGUtils.addAttribute(attr,"viewBox",b);        SVGUtils.startElement(handler, SVGConstants.SVG_GROUP, attr);        Iterator i = entities.iterator();        while (i.hasNext()) {            DXFEntity entity = (DXFEntity) i.next();            entity.toSAX(handler, svgContext);        }        SVGUtils.endElement(handler, SVGConstants.SVG_GROUP);    }