code: public void setExecutorService(ExecutorService v)
     {
        if (v != null)
        {
           executorService = v;
           isExternal = true;
        }
        else
        {
           executorService = null;
           isExternal = false;
        }
     }
docs: Set the executor service
  @param v The value