// Instantiate and initialized action chains
ActionsConfig actionsConfig = this.config.getActionsConfig();
if (actionsConfig != null) {
Iterator configs = actionsConfig.getActionConfigs();
while (configs.hasNext()) {
ActionConfig actionConfig = (ActionConfig)configs.next();
String className = actionConfig.getClassName();
Class clazz = null;
if (className == null) {
clazz = pluginContext.getDefaultActionClass();
} else {
clazz = context.getClassLoader().loadClass(className);
}
Action action = (Action)clazz.newInstance();
action.init(actionConfig, context);
Command command = chain(actionConfig.getFilterConfigs(), action);
ActionCommand item = new ActionCommand(actionConfig, command);
commands.put(actionConfig.getPath(), item);
}
}
}