private final Map<Object, KeptInMemoryObjectKey> keyByObjectMap =
/**/new IdentityHashMap<Object, KeptInMemoryObjectKey>();
public void addObject(final String key, final Object object)
throws StoreException {
final KeptInMemoryObjectKey keptKey = new KeptInMemoryObjectKey(key);
if (objectByKeyMap.put(keptKey, object) != null) {
throw new StoreException("key " + key + " already used");
}
if (keyByObjectMap.put(object, keptKey) != null) {
throw new StoreException("object " + identityString(object)