Assert.notNull(jobName, "Job name must not be null.");
Assert.notNull(jobParameters, "JobParameters must not be null.");
JobInstance jobInstance = null;
try {
CreateJobInstanceReq request = JobRepositoryRpcFactory.buildCreateJobInstanceReq(jobName, jobParameters);
CreateJobInstanceRes response = (CreateJobInstanceRes) getAppmasterScOperations().doMindRequest(request);
jobInstance = JobRepositoryRpcFactory.convertJobInstanceType(response.jobInstance);
} catch (Exception e) {
throw convertException(e);
}