AWElement contentElement = componentReference.contentElement();
if (contentElement instanceof AWTemplate) {
AWTemplate contentTemplate = (AWTemplate)contentElement;
actionList = (AWAction[])contentTemplate.extractElementsOfClass(AWAction.class);
componentReference.setUserData(actionList);
AWConcreteTemplate newTemplate = new AWConcreteTemplate();
newTemplate.init();
AWElement[] elementArray = contentTemplate.elementArray();
int elementArrayLength = elementArray.length;
for (int index = 0; index < elementArrayLength; index++) {
AWElement currentElement = elementArray[index];
if (currentElement instanceof AWAction) {
break;
}
newTemplate.add(currentElement);
}
componentReference.setContentElement(newTemplate);
}
}
return actionList;