 TODO: explore looking up XMLSchema types using simple parsing ?
 */
 
+import com.adobe.utils.DateUtil;
+
 import flash.utils.Dictionary;
 import flash.utils.getQualifiedClassName;
 import flash.xml.XMLDocument;
 import flash.xml.XMLNode;
 import flash.xml.XMLNodeType;
 
+import mx.collections.ICollectionView;
+import mx.collections.IList;
 import mx.collections.ListCollectionView;
 import mx.rpc.xml.*;
 import mx.utils.ObjectProxy;
-import mx.collections.IList;
-import com.adobe.utils.DateUtil;
-import mx.collections.ICollectionView;
 
 
 /**

            {
                try
                {
                    if (result is Date)
                    {
                        try
                        {

                                {
                                    // ID conflict. Use OLD object!
                                    partObj = existingByID;
                                    
                                    // hack to support RESTHref pointing to real object
                                    // related to RBL-8840 where we dropped version and stage
                                    // since href points to already fetched actual object
                                    // basically, <stage href="..">name</stage> is BAD form
                                    // for partial object pointers (named pointers? ewww)
                                    
                                    if (existing is IXObjHref)
                                    {
                                        try
                                        {
                                            existing.value = existingByID.name;
                                            //existing.referenced = existingByID;
                                        }
                                        catch (e:Error)
                                        {
                                            // can't pull that swizzle here
                                        }
                                    }
                                }
                            }
                            else // node has no ID, so use whatever we get
