Can you add some javadoc for these two classes? The doc should focus on the difference between this and the default ObjectInputStream/ObjectOutputStream (I guess in this case, the way classes are resolved - without the doc, I don't even fully understand why we need to override resolveClass).