private void untrackServiceReference(SatisfiableRecipe recipe, Set<String> stopped, Map<String, List<SatisfiableRecipe>> dependencies) {
if (stopped.add(recipe.getName())) {
for (Map.Entry<String, List<SatisfiableRecipe>> entry : dependencies.entrySet()) {
if (entry.getValue().contains(recipe)) {
Recipe r = getRepository().getRecipe(entry.getKey());
if (r instanceof SatisfiableRecipe) {
untrackServiceReference((SatisfiableRecipe) r, stopped, dependencies);
}
}
}