if (config == null) return;
CommandConfig[] commands = config.getCommandConfig();
if (commands == null) return;
CommandContainer container = twiddle.getCommandContainer();
ClassWorld world = getTwiddle().getClassWorld();
for (int i=0; i<commands.length; i++) {
if (commands[i] == null) {
throw new NullArgumentException("CommandConfig", i);
}
CommandInfo info = new CommandInfo(commands[i], world);
container.addCommandInfo(info);
}
}