}
if (dryrun) {
id = bundleEngine.dryrunSubmit(conf, startJob);
}
else {
id = bundleEngine.submitJob(conf, startJob);
}
json.put(JsonTags.JOB_ID, id);
}
catch (BundleEngineException ex) {
throw new XServletException(HttpServletResponse.SC_BAD_REQUEST, ex);