static Object newInstance(ClassLoader classLoader,String className) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
  Class driverClass;
  if (classLoader == null) {
    driverClass=Class.forName(className);
  }
 else {
    driverClass=classLoader.loadClass(className);
  }
  return driverClass.newInstance();
}

static Object newInstance ( ClassLoader classLoader , String className ) throws ClassNotFoundException , IllegalAccessException , InstantiationException { Class driverClass ; if ( classLoader == null ) { driverClass = Class . forName ( className ) ; } else { driverClass = classLoader . loadClass ( className ) ; } return driverClass . newInstance ( ) ; }
creates a new instance of the specified class name package private so this code is not exposed at the api level .
