if (relativeTo != null) {
RelativePathService.addService(pathService, path, false, relativeTo, serviceTarget, newControllers, listeners);
} else {
AbsolutePathService.addService(pathService, path, serviceTarget, newControllers, listeners);
}
final ThreadFactory threadFactory = new JBossThreadFactory(new ThreadGroup("DeploymentScanner-threads"), Boolean.FALSE, null, "%G - %t", null, null, AccessController.getContext());
final ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(2, threadFactory);
ServiceBuilder builder = serviceTarget.addService(serviceName, service)
.addDependency(pathService, String.class, service.pathValue)
.addDependency(Services.JBOSS_SERVER_CONTROLLER, ModelController.class, service.controllerValue)