final DataTreeConfiguration treeConfig) {
if (treeConfig.getTreeType() == TreeType.CONFIGURATION) {
checkArgument(schemaNode.isConfiguration(), "Supplied %s does not belongs to configuration tree.",
- schemaNode.getPath());
+ schemaNode);
}
if (schemaNode instanceof ContainerSchemaNode) {
return ContainerModificationStrategy.of((ContainerSchemaNode) schemaNode, treeConfig);