@Override
    public void run() {
        String commandName = commander.getParsedCommand();
        if (!commander.getCommands().isEmpty()) {
            JCommander command = commander.getCommands().get(commandName);
            if (command != null && !command.getObjects().isEmpty()) {
                Command commandObj = (Command) command.getObjects().get(0);
                commandObj.run();
            } else {
                // no command selected, show usage
                usage();
            }
        }
    }
Abstract class for command actions.

@author Nico Bergemann <barracuda415 at yahoo.de>
disunity-cli/src/main/java/info/ata4/disunity/cli/command/Command.java