class CacheManagerImpl implements CacheManager {

	@Override
	public void dispose() {
		for (Map.Entry<String, Object> entry : cache.entrySet()) {
			if (entry.getValue() instanceof Cacheable) {
				((Cacheable) entry.getValue()).close();
			}
		}
		cache.clear();
	}

}