String mapKey = getListMemberMapKey(propDefList);
String mapPath = getAugeasPathRelativeToParent(listMemberPropDefMap, node, augeas);
String listMemberPathsExpression = node.getPath() + AugeasNode.SEPARATOR_CHAR + mapPath;
List<String> listMemberPaths = augeas.match(listMemberPathsExpression);
for (String listMemberPath : listMemberPaths) {
AugeasNode listMemberNode = new AugeasNode(listMemberPath);
PropertyMap listMemberPropMap = new PropertyMap(listMemberPropDefMap.getName());
propList.add(listMemberPropMap);
// Add the "key" prop, if defined, to the map.
if (mapKey != null) {
PropertySimple keyProp = new PropertySimple(mapKey, listMemberNode.getName());
listMemberPropMap.put(keyProp);
}
// Populate the rest of the map child properties.
populatePropertyMap(listMemberPropDefMap, listMemberPropMap, augeas, listMemberNode);