docs: public String getCommand() {
          lock.lock();
          try {
              String command = envState.commands.poll();
              if (command == null)
                  return "";
              else
                  return command;
          } finally {
              lock.unlock();
          }
      }