private Action[] parseActions(List actionModels) {
if (actionModels != null && !actionModels.isEmpty()) {
List actions = new ArrayList(actionModels.size());
for (Iterator it = actionModels.iterator(); it.hasNext();) {
AbstractActionModel actionModel = (AbstractActionModel) it.next();
Action action;
if (actionModel instanceof EvaluateModel) {
action = parseEvaluateAction((EvaluateModel) actionModel);
} else if (actionModel instanceof RenderModel) {
action = parseRenderAction((RenderModel) actionModel);
} else if (actionModel instanceof SetModel) {
action = parseSetAction((SetModel) actionModel);
} else {
action = null;
}
if (action != null) {
AnnotatedAction annotatedAction = new AnnotatedAction(action);
annotatedAction.getAttributes().putAll(parseMetaAttributes(actionModel.getAttributes()));
actions.add(annotatedAction);
}
}
return (Action[]) actions.toArray(new Action[actions.size()]);
} else {