belowProjectRoot.add(base);
bestProjectRoot = base;
bestProjectRootDistance = depth;
}
}
<BUG>if (bestProjectRoot != null) {
LOG.info("Best root config: " + bestProjectRoot);

LOG.info("All root configs " + belowProjectRoot);

final ClientServerSetup bestConfig = fileMappedSetup.get(bestProjectRoot);</BUG>
belowProjectRoot.remove(bestProjectRoot);

belowProjectRoot.add(base);
bestProjectRoot = base;
bestProjectRootDistance = depth;
}
}
if (bestProjectRoot != null) {
if (LOG.isDebugEnabled()) {
LOG.debug("Best root config: " + bestProjectRoot);
LOG.debug("All root configs " + belowProjectRoot);
}
final ClientServerSetup bestConfig = fileMappedSetup.get(bestProjectRoot);
belowProjectRoot.remove(bestProjectRoot);
