private void suspendBundleJob(HttpServletRequest request, HttpServletResponse response) throws XServletException {
BundleEngine bundleEngine = Services.get().get(BundleEngineService.class).getBundleEngine(getUser(request),
getAuthToken(request));
String jobId = getResourceName(request);
try {
bundleEngine.suspend(jobId);
}
catch (BundleEngineException ex) {
throw new XServletException(HttpServletResponse.SC_BAD_REQUEST, ex);
}
}