if (cached.allowUnload()) {
if(pool.getConfigurationManager()!=null) { // might be null during db initialization
pool.getConfigurationManager().invalidate(old.getURI(), null);
}
names.remove(old.getURI().getRawCollectionPath());
cached.sync(true);
map.remove(cached.getKey());
removed = true;
}
} finally {
lock.release(Lock.READ_LOCK);