public List<Command> getCommands() {
        List<Command> list = new ArrayList<>();
        Match commands = rootElement.xpath("commands").children();
        for ( Match command : commands.each() ) {
            String name = command.attr("name");
            String content = command.text();
            list.add( new Command(name, content) );
        }
        return list;
    }