     public function readExternal(input:IDataInput):void 
     {
         context = input.readObject();
-        persistedData = input.readObject();
+        persistenceData = input.readObject();
         
         var className:String = input.readObject();
-        factory = (className == "null") ? null : getDefinitionByName(className) as Class;
+        viewClass = (className == "null") ? null : getDefinitionByName(className) as Class;
     }
 }
 }
    public function writeExternal(output:IDataOutput):void
    {
        output.writeObject(context);
        output.writeObject(persistedData);

        // Have to store the class name of the factory because classes can't be
        // written to a shared object
        output.writeObject(getQualifiedClassName(factory));
    }
    
    /**

    public var instance:View;
    
    //----------------------------------
    //  persistenceData
    //----------------------------------
    
    /**
