}
void addCompositeChild(final CompositeNodeDataWithSchema newChild) {
- addChild(newChild);
+ AugmentationSchema augSchema = findCorrespondingAugment(getSchema(), newChild.getSchema());
+ if (augSchema != null) {
+ augmentationsToChild.put(augSchema, newChild);
+ } else {
+ addChild(newChild);
+ }
}
private AbstractNodeDataWithSchema addChild(final DataSchemaNode schema) {