FormData updatedFormData = formData;
if (element == null) {
element = form;
}
if (element instanceof FormAction) {
FormAction action = (FormAction) element;
if (action != null) {
boolean isActive = action.isActive(form, formData);
if (isActive) {
updatedFormData = action.actionPerformed(form, formData);
}
}
}
// recurse into children
Collection<Element> children = element.getChildren(formData);