code: @Override
      protected void doHandle(CommandContext ctx) throws CommandLineException {
  
          final ForControlFlow forCF = ForControlFlow.get(ctx);
          if (forCF == null) {
              throw new CommandLineException("done is not available outside 'for' loop");
          }
          forCF.run(ctx, discard.isPresent(ctx.getParsedCommandLine()));
      }
docs: /* (non-Javadoc)
  @see org.jboss.as.cli.handlers.CommandHandlerWithHelp#doHandle(org.jboss.as.cli.CommandContext)