@ Override protected Class resolveClass ( ObjectStreamClass classDesc ) throws IOException , ClassNotFoundException { for ( ClassLoader loader : classLoaderRegistration ) { try { return resolveClass ( classDesc , loader ) ; } catch ( ClassNotFoundException e ) { // ignore } } return super . resolveClass ( classDesc ) ; }
Use the registered ClassLoaders to resolve and then use system class loader