code: public static void setDriver(WebcamDriver wd) {
  
  		if (wd == null) {
  			throw new IllegalArgumentException("Webcam driver cannot be null!");
  		}
  
  		LOG.debug("Setting new capture driver {}", wd);
  
  		resetDriver();
  
  		driver = wd;
  	}
docs: Set new video driver to be used by webcam.<br>
  <br>
  <b>This method is not thread-safe!</b>
  
  @param wd new webcam driver to be used (e.g. LtiCivil, JFM, FMJ, QTJ)
  @throws IllegalArgumentException when argument is null