@Override protected Class<?> resolveClass(ObjectStreamClass objectStreamClass) throws IOException, ClassNotFoundException {
  Class<?> clazz=Class.forName(objectStreamClass.getName(),false,classLoader);
  if (clazz != null) {
    return clazz;
  }
 else {
    return super.resolveClass(objectStreamClass);
  }
}

@ Override protected Class < ? > resolveClass ( ObjectStreamClass objectStreamClass ) throws IOException , ClassNotFoundException { Class < ? > clazz = Class . forName ( objectStreamClass . getName ( ) , false , classLoader ) ; if ( clazz != null ) { return clazz ; } else { return super . resolveClass ( objectStreamClass ) ; } }
resolve a class specified by the descriptor using the specified classloader or the super classloader .
