code: @Override
      public void handle(CommandContext ctx) throws CommandLineException {
  
          recognizeArguments(ctx);
  
          if(helpArg.isPresent(ctx.getParsedCommandLine())) {
              printHelp(ctx);
              return;
          }
  
          if(!isAvailable(ctx)) {
              throw new CommandFormatException("The command is not available in the current context (e.g. required subsystems or connection to the controller might be unavailable).");
          }
  
          doHandle(ctx);
      }
docs: /* (non-Javadoc)
  @see org.jboss.as.cli.CommandHandler#handle(org.jboss.as.cli.CommandContext)