if (jobName.equals(j.getId())) {
return j;
}
}
Job job = null;
final InputStream is;
try {
is = getJobXml(jobName, classLoader);
} catch (final IOException e) {
throw MESSAGES.failToGetJobXml(e, jobName);
}
try {
job = JobParser.parseJob(is, classLoader);
loadedJobs.add(job);
if (!job.getInheritingJobElements().isEmpty()) {
JobMerger.resolveInheritance(job, classLoader, loadedJobs);
}
} catch (final Exception e) {
throw MESSAGES.failToParseJobXml(e, jobName);
} finally {