impl.put(id, new MemoryServiceImpl(id, this.factory));
MemoryServiceImpl service = impl.get(id);
MemoryDataStore store = null;
try {
store = service.resolve(MemoryDataStore.class, null);
} catch (IOException e) {
// won't happen
throw (RuntimeException) new RuntimeException(e.getLocalizedMessage())
.initCause(e);
}