if (previousValuesMap == null) previousValuesMap = new Map[0];
previousValuesMap = (Map[]) ArrayUtils.add(previousValuesMap, objectCreated);
Form parentForm = field.getForm();
String parentNamespace = getNamespaceManager().getParentNamespace(inputName);
<BUG>Set expandedFields = (Set) getFormProcessor().getAttribute(parentForm, parentNamespace, FormStatusData.EXPANDED_FIELDS);
</BUG>
if (expandedFields != null) {
expandedFields.remove(field.getFieldName());
<BUG>getFormProcessor().setAttribute(parentForm, parentNamespace, FormStatusData.EXPANDED_FIELDS, expandedFields);
</BUG>
}

if (previousValuesMap == null) previousValuesMap = new Map[0];
previousValuesMap = (Map[]) ArrayUtils.add(previousValuesMap, objectCreated);
Form parentForm = field.getForm();
String parentNamespace = getNamespaceManager().getParentNamespace(inputName);
Set expandedFields = (Set) formProcessor.getAttribute(parentForm, parentNamespace, FormStatusData.EXPANDED_FIELDS);
if (expandedFields != null) {
expandedFields.remove(field.getFieldName());
formProcessor.setAttribute(parentForm, parentNamespace, FormStatusData.EXPANDED_FIELDS, expandedFields);
