try
{
CacheListeners cacheDesc = getCacheListeners( cacheName );
Map eventQMap = cacheDesc.eventQMap;
cleanupEventQMap( eventQMap );
ICacheEventQueue q = ( ICacheEventQueue ) eventQMap.remove( listener );
if ( q != null )
{
q.destroy();
}
if ( log.isDebugEnabled() )
{
log.debug( "****** Cache " + cacheName + "'s listener size=" + cacheDesc.eventQMap.size() );
}