if (jobsFile.createNewFile()) log.debug("new jobs file created.");
DocumentHelper.writeDocument(getSnapshot(publication, jobs), jobsFile);
} catch (final TransformerConfigurationException e) {
log.error("Writing job snapshot failed: ", e);
throw new SchedulerException(e);
} catch (final IOException e) {
log.error("Writing job snapshot failed: ", e);
throw new SchedulerException(e);
} catch (final TransformerException e) {
log.error("Writing job snapshot failed: ", e);
throw new SchedulerException(e);
} catch (final SchedulerException e) {
log.error("Writing job snapshot failed: ", e);
throw new SchedulerException(e);
}
}