if (h.getCommandsList() == null) {
h.setCommandsList(new ListModel<IHookCommand, HookModel>(new ArrayList<IHookCommand>(),
((HookModel) h), "commandsList"));
}
List<IHookCommand> commands = h.getCommandsList();
commands.add(new HookCommandModel());
if (config != null) {
config.setModified(true);
}
}