fieldTemplate = defaultFields.get(0).copy();
} else {
fieldTemplate = fieldTemplateList.remove(0);
}
ValueExpression objectExpr = template.getVariables().get("object");
fieldTemplate.getVariables().put("value", new PropertyValueExpression(objectExpr, field));
defaultFields.addAfter(0, fieldTemplate);
}
defaultFields.remove(0);
}