if (node.hasAncestor(exporter)) {
LOGGER.debug(format("Skipping %s (already exists in the current branch)", exporter));
} else {
boolean existing = tree.flatten().contains(exporter);
LOGGER.debug(format("Adding %s as a dependency for %s", exporter, bundle));
Node child = node.addChild(exporter);
if (existing) {
LOGGER.debug(format("Skipping children of %s (already exists in another branch)", exporter));
} else {
createNode(child);
}