for (int i = 0; i < formDefinitions.size(); i++) {
String name = (String)formDefinitions.names().get(i);
Object definition = formDefinitions.get(name);
MetadataDefinition foundDefinition = TreeStructureUtil.getLeaf(definitions, name.split("_"));
if (foundDefinition != null) {
MetadataValue value = foundDefinition.createValue(definition);
presetValues.add(createAncestry(foundDefinition, value));
}
}
}
}