code: private void  stop(Attributes attributes) throws SVGParseException
     {
        debug("<stop>");
  
        if (currentElement == null)
           throw new SVGParseException("Invalid document. Root element must be <svg>");
        if (!(currentElement instanceof SVG.GradientElement))
           throw new SVGParseException("Invalid document. <stop> elements are only valid inside <linearGradient> or <radialGradient> elements.");
        SVG.Stop  obj = new SVG.Stop();
        obj.document = svgDocument;
        obj.parent = currentElement;
        parseAttributesCore(obj, attributes);
        parseAttributesStyle(obj, attributes);
        parseAttributesStop(obj, attributes);
        currentElement.addChild(obj);
        currentElement = obj;
     }
docs: Gradient <stop> element