instances.put(key,instance);