* of the object being deserialized.
*/
public static Serializable toObject(byte[] bytes,
final ClassLoader classLoader) throws IOException,
ClassNotFoundException {
return toObject(bytes, new IClassLoader() {
public Class<?> loadClass(String className)
throws ClassNotFoundException {
return classLoader.loadClass(className);
}
});