// Changing to synchronous call from asynchronous queuing to prevent the
// loss of command if the queue is full or the queue is lost in case of
// failure.
try {
if (useXCommand) {
new StartXCommand(jobId).call();
}
else {
new StartCommand(jobId).call();
}
}