newControllers.add(factoryBuilder.install());
} else {
factoryBuilder.install();
}
final UnboundedQueueThreadPoolService service = new UnboundedQueueThreadPoolService(maxThreads, new TimeSpec(TimeUnit.MILLISECONDS, keepAlive));
ServiceBuilder<ManagedJBossThreadPoolExecutorService> builder = serviceTarget.addService(BASE_SERVICE_NAME.append(name), service)
.addDependency(threadFactoryServiceName, ThreadFactory.class, service.getThreadFactoryInjector())
.setInitialMode(ServiceController.Mode.ACTIVE);
if (verificationHandler != null) {
builder.addListener(verificationHandler);
}
if (newControllers != null) {