AbstractSession next = ((AbstractSession) sessions.get(x));
if (next.getProject().getOrderedDescriptors().contains(xmlDescriptor)) {
// 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(xmlDescriptor.getJavaClass().getName());