try {
entity = transactionallyQueryEntity(slotKey);
} catch (EntityNotFoundException e) {
throw new NoSuchObjectException(slotKey.toString(), e);
}
Slot slot = new Slot(entity);
if (inflate) {
Map<Key, Entity> entities = getAll(slot.getWaitingOnMeKeys());
Map<Key, Barrier> barriers = new HashMap<Key, Barrier>(entities.size());
for (Map.Entry<Key, Entity> entry : entities.entrySet()) {
barriers.put(entry.getKey(), new Barrier(entry.getValue()));
}
slot.inflate(barriers);
inflateBarriers(barriers.values());
}
return slot;
}