    public Element processTag(Element ele, Attributes attrs)
    {
        String typeAttr = attrs.getValue("type"); 
        if ("variant".equals(typeAttr)) 
        {
            Element seg = OSISUtil.factory().createSeg();
            seg.setAttribute(OSISUtil.OSIS_ATTR_TYPE, OSISUtil.VARIANT_TYPE);
            String classAttr = attrs.getValue("class"); 
            if (classAttr != null)
            {
                seg.setAttribute(OSISUtil.OSIS_ATTR_SUBTYPE, OSISUtil.VARIANT_CLASS + classAttr);
            }
            if (ele != null)
            {
                ele.addContent(seg);
            }
            return seg;
        }
        Element div = OSISUtil.factory().createDiv();
        if (ele != null)
        {
            ele.addContent(div);
        }
        return div;
    }

    public Element processTag(Element ele, Attributes attrs)
    {
        String typeAttr = attrs.getValue("type"); 
        if ("variant".equals(typeAttr)) 
        {
            Element seg = OSISUtil.factory().createSeg();
            seg.setAttribute(OSISUtil.OSIS_ATTR_TYPE, OSISUtil.VARIANT_TYPE);
            String classAttr = attrs.getValue("class"); 
            if (classAttr != null)
            {
                seg.setAttribute(OSISUtil.OSIS_ATTR_SUBTYPE, OSISUtil.VARIANT_CLASS + '-' + classAttr);
            }
            if (ele != null)
            {
                ele.addContent(seg);
            }
            return seg;
        }
        Element div = OSISUtil.factory().createDiv();
        if (ele != null)
        {
            ele.addContent(div);
        }
        return div;
    }
