throws SAXException {
XMLPipelineContext pipelineContext = dynamicProcess.getPipelineContext();
DependencyContext context = pipelineContext.getDependencyContext();
Dependency dependency = context.extractDependency();
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");
Period timeToLive = dependency.getTimeToLive();
generateSimpleElement(target, timeToLive.toString(), "time-to-live");
Validity validity = context.checkValidity(dependency);
generateSimpleElement(target, validity.toString(), "validity");
}