import org.opendaylight.yangtools.yang.model.api.LeafListSchemaNode;
import org.opendaylight.yangtools.yang.model.api.LeafSchemaNode;
import org.opendaylight.yangtools.yang.model.api.ListSchemaNode;
+import org.opendaylight.yangtools.yang.model.api.SchemaContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
return new ValueNodeModificationStrategy<>(AnydataNode.class, (AnydataSchemaNode) schemaNode);
} else if (schemaNode instanceof AnyxmlSchemaNode) {
return new ValueNodeModificationStrategy<>(AnyxmlNode.class, (AnyxmlSchemaNode) schemaNode);
+ } else if (schemaNode instanceof SchemaContext) {
+ return new StructuralContainerModificationStrategy((SchemaContext) schemaNode, treeConfig);
} else {
throw new IllegalStateException("Unsupported schema " + schemaNode);
}