I want to deserialize some objects whose classes were loaded by a custom classloader. I found a suggestion to override ObjectInputStream#resolveClass(...) to call Class.forName(desc.getName(), false, loader), where loader is my custom classloader. Is that the proper/best way to do it? Should the 'initialize' argument to Class#forName(...) be true?