// 6: If unit of work search through new objects.
//
if (conforming) {
if (cachedObject == null) {
if (selectionKey != null) {
if (!uow.shouldNewObjectsBeCached()) {
cachedObject = uow.getObjectFromNewObjects(query.getReferenceClass(), selectionKey);
}
} else {
// PERF: 3639015 - cloning the expression no longer required
// when using the root session