public Class load(String type) throws Exception {
  ClassLoader loader=getClassLoader();
  if (loader == null) {
    loader=getCallerClassLoader();
  }
  return loader.loadClass(type);
}

public Class load ( String type ) throws Exception { ClassLoader loader = getClassLoader ( ) ; if ( loader == null ) { loader = getCallerClassLoader ( ) ; } return loader . loadClass ( type ) ; }
this method is used to acquire the class of the specified name . loading is performed by the thread context class loader as this will ensure that the class loading strategy can be changed as requirements dictate . typically the thread context class loader can handle all serialization requirements .
