code: public SchedulerDriver createDriver(Scheduler scheduler, boolean implicitAcknowledgements) {
  		MesosSchedulerDriver schedulerDriver;
  		if (this.credential().isDefined()) {
  			schedulerDriver =
  				new MesosSchedulerDriver(scheduler, frameworkInfo.build(), this.masterUrl(),
  					implicitAcknowledgements, this.credential().get().build());
  		}
  		else {
  			schedulerDriver =
  				new MesosSchedulerDriver(scheduler, frameworkInfo.build(), this.masterUrl(),
  					implicitAcknowledgements);
  		}
  		return schedulerDriver;
  	}
docs: Create the Mesos scheduler driver based on this configuration.
  @param scheduler the scheduler to use.
  @param implicitAcknowledgements whether to configure the driver for implicit acknowledgements.
  @return a scheduler driver.