context.popDependencyTracker();
XMLProcess target = getTargetProcess(dynamicProcess);
// Generate an element containing the freshness.
Freshness freshness = dependency.freshness(context);
generateSimpleElement(target, freshness.toString(),
"freshness");
// Generate an element containing the revalidated freshness.
if (freshness == Freshness.REVALIDATE) {
Freshness revalidated = dependency.revalidate(context);
generateSimpleElement(target, revalidated.toString(),
"revalidated");
}
Cacheability cacheability = dependency.getCacheability();
generateSimpleElement(target, cacheability.toString(), "cacheability");