if (props != null) {
pigContextFactory.setProperties(props);
}
pigContextFactory.afterPropertiesSet();
pigFactory = new PigServerFactoryBean();
pigFactory.setPigContext(pigContextFactory.getObject());
if (validateEachStatement != null) {
pigFactory.setValidateEachStatement(validateEachStatement);
}
if (StringUtils.hasText(jobName)) {