jobSB = (SourceBean)template.getAttribute("JOB");
Assert.assertNotNull(jobSB, "template cannot be null");
name = (String)jobSB.getAttribute("jobName");
if(name == null) {
throw new TemplateParseException(template, "Missing Talend project name in document template");
}
project = (String)jobSB.getAttribute("project");
if(project == null) {
throw new TemplateParseException(template, "Missing Talend project name in document template");
}
language = (String)jobSB.getAttribute("language");
if(language == null) {
throw new TalendEngineException("Missing Talend job language in document template");