+
+ /**
+ * Mark all parents of resources marked new as optional provisionally. This mark is removed
+ * in ValidateGraph.run, if the resource can be found in dependencies.
+ */
+ private void propagateOptionalMarks(int child) {
+ int parent = identities.getParent(child);
+ if(parent >= 0 && !identities.isRoot(parent) && !identities.isNewResource(parent) && identities.markOptional(parent))
+ propagateOptionalMarks(parent);
+ }
+