                 catch (e:Error)
                 {
                     //throw new Error("Failed to set attribute "+attrName+"("+attr+") on "+resultTypeName+". Check that class is dynamic or attribute name is spelled correctly");
-                    /**TRACEDISABLE:trace("Failed to set attribute "+attrName+"("+attr+") on "+resultTypeName+". " + e + ". Check that class is dynamic or attribute name is spelled correctly");*/
+                    trace("Failed to set attribute "+attrName+"("+attr+") on "+resultTypeName+". Check that class is dynamic or attribute name is spelled correctly");
                 }
             }
             

            value = existing;
        }
        
        // are we just being asked to point at something?
        if ((result[propName] is IXObjHref) && !(value is IXObjHref))
            (result[propName] as IXObjHref).href = getIDProperty(value);
        else
            result[propName] = value;
        
        return result;
    }

        {
            if (isArray && (result as Array).length > 0)
            {
                trace("flushing array");
                (result as Array).splice(0);
            }
            else if (isCollection && (result as IList).length > 0)
            {
                trace("flushing collection");
                (result as IList).removeAll();
            }
        }
