// deployed that we didn't find on the scan
Set<String> toRemove = new HashSet<String>(deployed);
toRemove.removeAll(foundDeployed.keySet());
toRemove.removeAll(newlyAdded); // in case user removed the marker and added replacement
for (String missing : toRemove) {
builder = builder.undeploy(missing).andRemoveUndeployed();
}
// Throw away any found marker files that we didn't already know about
Set<String> validFinds = cleanSpuriousMarkerFiles(foundDeployed);
validFinds.addAll(newlyAdded);