1. A method for modelling a serialized object stream, comprising: receiving a stream of bytes corresponding to the serialized form of a first object; creating an empty initial model for containing a generic object and a generic class; upon detection of a class from said stream, constructing a corresponding generic class object in the model using a processor; upon detection of a new object from said stream, constructing a corresponding generic object in the model; and referencing further objects and classes in the model that are associated with the generic objects and classes.