code: private static ExecutorService wrapExecutor(final Executor executor)
      {
          return new AbstractExecutorService()
          {
              private volatile boolean isShutdown = false;
              private volatile boolean isTerminated = false;
  
              @Override
              public void shutdown()
              {
                  isShutdown = true;
              }
  
              @Override
              public List<Runnable> shutdownNow()
              {
                  return Lists.newArrayList();
              }
  
              @Override
              public boolean isShutdown()
              {
                  return isShutdown;
              }
  
              @Override
              public boolean isTerminated()
              {
                  return isTerminated;
              }
  
              @Override
              public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException
              {
                  throw new UnsupportedOperationException();
              }
  
              @Override
              public void execute(Runnable command)
              {
                  try
                  {
                      executor.execute(command);
                  }
                  finally
                  {
                      isShutdown = true;
                      isTerminated = true;
                  }
              }
          };
      }
docs: temporary wrapper for deprecated constructor