CacheKey key = session.getIdentityMapAccessorInstance().acquireDeferredLock(pk, xmlDescriptor.getJavaClass(), xmlDescriptor);
if ((xmlDescriptor).shouldPreserveDocument()) {
key.setRecord(row);
}
key.setObject(obj);
key.releaseDeferredLock();
}
}
public Node getNodeForObject(Object obj) {
AbstractSession session = context.getSession(obj);