code: public final void setConcurrentExecutor(Executor concurrentExecutor) {
          if (concurrentExecutor != null) {
              this.concurrentExecutor = concurrentExecutor;
              if (managedExecutorServiceClass != null && managedExecutorServiceClass.isInstance(concurrentExecutor)) {
                  this.adaptedExecutor = new ManagedTaskExecutorAdapter(concurrentExecutor);
              } else {
                  this.adaptedExecutor = new TaskExecutorAdapter(concurrentExecutor);
              }
          } else {
              this.concurrentExecutor = Executors.newSingleThreadExecutor();
              this.adaptedExecutor = new TaskExecutorAdapter(this.concurrentExecutor);
          }
      }
docs: Specify the {@link java.util.concurrent.Executor} to delegate to.
  <p>
  Autodetects a JSR-236
  
  @param concurrentExecutor the new concurrent executor
  {@link javax.enterprise.concurrent.ManagedExecutorService} in order to
  expose {@link javax.enterprise.concurrent.ManagedTask} adapters for it.