- if (NamespaceUtils.hasNamespace(qName)) {
- if (node.getIndex() > 1) {
- log.warn("Same name siblings not supported, skipping " + node);
- continue nodes;
- }
- Content content = collection.add(qName, qName);
- Source source = toSource(node);
- ((ProvidedContent) content).getSession().edit((s) -> {
- ((ProvidedSession) s).notifyModification((ProvidedContent) content);
- content.write(Source.class).complete(source);
-// ContentUtils.traverse(content,
-// (c, depth) -> ContentUtils.print(c, System.out, depth, false));
- }).toCompletableFuture().join();
-
- } else {
- // ignore
- log.debug(() -> "Ignored " + node);
+// if (NamespaceUtils.hasNamespace(qName)) {
+ if (node.getIndex() > 1) {
+ log.warn("Same name siblings not supported, skipping " + node);