commandName = parameters.substring(0, pos).toLowerCase();
commandParameters = parameters.substring(pos + 1);
}
Command cmd = Command.getCommand(commandName);
if (cmd != null) {
PlainBlockCommandState bcs = cmd.parse(template, commandParameters);
if (bcs != null)
throw new RuntimeException("Optional/Repeated command cannot be used for block commands!");
} else {
throw new RuntimeException("Unsupported command: " + commandName);
}