// Try to load the instance manager for the given execution mode
// Try to load the scheduler for the given execution mode
if (executionMode == ExecutionMode.LOCAL) {
try {
this.instanceManager = new LocalInstanceManager();
} catch (Throwable t) {
throw new Exception("Cannot instantiate local instance manager: " + t.getMessage(), t);
}
} else {
final String instanceManagerClassName = JobManagerUtils.getInstanceManagerClassName(executionMode);