code: public final void run(final String[] args) throws IOException, JDOMException {
      try {
        Parameters parameters = cliArgumentsParser.parse(args);
        if (parameters.getStrategy() == Strategy.TOKENIZE) {
          annotate(parameters);
        } else if (parameters.getStrategy() == Strategy.SERVER) {
          server(parameters);
        } else if (parameters.getStrategy() == Strategy.CLIENT) {
          client(parameters);
        } else {
          System.out.println(String.format(
              "Invalid sub-command [%s]. Sub-commands accepted are: (tok|server|client)",
              parameters.getStrategyString()));
        }
      } catch (final ArgumentParserException e) {
        cliArgumentsParser.handleError(e);
        System.out.println("Run java -jar target/ixa-pipe-tok-" + VERSION
            + ".jar (tok|server|client) -help for details");
        System.exit(1);
      }
    }
docs: Run the appropriate command based on the command line parameters.
  
  @param args
  the arguments passed through the CLI
  @throws IOException
  exception if problems with the incoming data
  @throws JDOMException
  a xml exception