private final ExecutorService executorService;
private final TransactionManager transactionManager;
WildFlyBatchEnvironment(final BeanManager beanManager,
final ExecutorService executorService, final TransactionManager transactionManager) {
artifactFactory = (beanManager == null ? null : new WildFlyArtifactFactory(beanManager));
this.executorService = executorService;
this.transactionManager = transactionManager;
}