public static CreateJobExecutionWithJobInstanceReq buildCreateJobExecutionWithJobInstanceReq(JobInstance jobInstance, JobParameters jobParameters, String jobConfigurationLocation) {
CreateJobExecutionWithJobInstanceReq req = new CreateJobExecutionWithJobInstanceReq();
Map<String, JobParameterType> map = new HashMap<String, JobParameterType>();
for(Entry<String, JobParameter> parameter : jobParameters.getParameters().entrySet()) {
JobParameterType type = new JobParameterType();
type.parameter = parameter.getValue().getValue();
type.parameterType = parameter.getValue().getType();
map.put(parameter.getKey(), type);
}
req.jobInstance = JobRepositoryRpcFactory.convertJobInstanceType(jobInstance);