}
public TalendJob getJobInstance()
throws ClassNotFoundException, NoSuchMethodException, InvalidSyntaxException {
final TalendJob jobInstance;
TalendESBJobFactory talendESBJobFactory = Activator.getJobService(TalendESBJobFactory.class, clazz);
if (null != talendESBJobFactory) {
jobInstance = talendESBJobFactory.newTalendESBJob();
} else {
Class<?> jobType = this.getCamelContext().getClassResolver().resolveMandatoryClass(clazz);
jobInstance = TalendJob.class.cast(getCamelContext().getInjector().newInstance(jobType));
}
return jobInstance;