public static void addAttribute(Prim obj, Object attribName, Object attribValue) throws Exception {     obj.sfReplaceAttribute(attribName, attribValue);
public static void addAttribute(Object obj, Object attribName, Object attribValue) throws Exception { if (obj instanceof Prim) { ((Prim)obj).sfReplaceAttribute(attribName, attribValue); } else if (obj instanceof ComponentDescription){ ((ComponentDescription)obj).sfReplaceAttribute(attribName, attribValue); }
    public static void addAttribute(Prim obj, Object attribName,        Object attribValue) throws Exception {        // Object oldValue = obj.sfContext().get(attribName);        // ComponentDescription cmp = SFParser.getParser().parse(attribName.    // toString() + " " + value.toString() + ";");        // obj.sfReplaceAttribute(attribName, cmp.getContext().get(attribName));        obj.sfReplaceAttribute(attribName, attribValue);    }