if(managedThreadFactory == null) {
// if not injected create one using normal thread priority
final String threadFactoryName = "EE-ManagedScheduledExecutorService-"+name;
managedThreadFactory = new ManagedThreadFactoryImpl(threadFactoryName, null, Thread.NORM_PRIORITY);
}
executorService = new ManagedScheduledExecutorServiceImpl(name, managedThreadFactory, hungTaskThreshold, longRunningTasks, corePoolSize, keepAliveTime, keepAliveTimeUnit, threadLifeTime, contextService.getOptionalValue(), rejectPolicy);
}