in src/main/java/org/apache/sling/jcr/repoinit/impl/NodeVisitor.java [162:184]
public void visitRemoveMixins(RemoveMixins rm) {
List<String> paths = rm.getPaths();
if (paths != null) {
for (String absPath : paths) {
try {
if (!session.itemExists(absPath)) {
log.warn("Path does not exist, not removing mixins: {}", absPath);
} else {
List<String> mixins = rm.getMixins();
if (mixins != null) {
Node node = session.getNode(absPath);
log.info("Removing mixins {} from node {}", mixins, absPath);
for (String mixin : mixins) {
node.removeMixin(mixin);
}
}
}
} catch (Exception e) {
report(e, "RemoveMixins execution failed at " + absPath + ": " + e);
}
}
}
}