/** * Unregisters the object associated with the specified class and context. * * @param clazz the class * @param context the context */ public void unregister(Class<?> clazz, K context) { Cache<K, T> cache = getCache(clazz); if (cache != null) { cache.setObject(context, null); if (cache.size() == 0) { _cache.remove(clazz); } } }