throws ServerDbException, ServerAccessException, SQLException {
Key key = new Key(entityId, params);
synchronized (lock) {
DbLookup lookup = cachedDbLookups.get(key);
if (lookup == null) {
lookup = new CachedDbLookup(createAndStoreDbLookup(key));
cachedDbLookups.put(key, lookup);
}
return lookup;
}
}