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 (!documentPreservationPolicy.shouldPreserveDocument()) {
next = next.acquireUnitOfWork();
//}
return next;
}
}
throw XMLMarshalException.descriptorNotFoundInProject(object.getClass().getName());