XMLDescriptor xmlDescriptor = (XMLDescriptor) next.getDescriptor(object);
if (xmlDescriptor != null) {
// we don't currently support document preservation
// and non-shared cache (via unit of work)
if (requireUnitOfWork) {
next = next.acquireUnitOfWork();
}
return next;
}
}
}