public Subcommand checkCommand(String name) throws CommandException {
		Subcommand cmd = cmdMap.get(name);
		if (cmd == null) {
			throw new CommandException("Command \"" + name + "\" not found");
		}
		return cmd;
	}