Controlled deserialization stream using the system class loader.
Employs the classloader available from lookup (currently that used for modules).
Also contains static methods to safely read objects that might have problems
during deserialization that should not corrupt the stream. The stream also provides
support for changing name of stored classes.

readClassDescriptor

Often, as the time goes the serialized classes evolve. They can be moved
to new packages, renamed or changed (by a mistake) to not reflect the
version of class stored in previous sessions.

This method deals with some of this incompatibilites and provides the
module owners a way how to fix some of them.

When a class is read, the Utilities.translate is consulted
to find out what whether the name of the class is listed there and
what new value is assigned to it. This allows complete rename of the
serialized class. For example:
org.netbeans.core.NbMainExplorer
can be renamed to
org.netbeans.core.ui.NbExp - of course supposing that
the new class is able to read the serialized fields of the old one.

Another useful feature of this method is the ability to supress wrong
serialVersionUID. This was causing us a lot of problems,
because people were forgetting to specify the serialVersionUID
field in their sources and then it was hard to recover from it. Right
now we have a solution: Just use Utilities.translate framework
to assing your class org.yourpackage.YourClass the same
name as it had e.g. org.yourpackage.YourClass. This will
be interpreted by this method as a hit to suppress serialVersionUID
and the NbObjectInputStream will ignore its value.

Please see Utilities.translate to learn how your module
can provide list of classes that changed name or want to suppress serialVersionUID.