synchronized ( caches )
{
RemoteCacheNoWait cache = (RemoteCacheNoWait) caches.get( cattr.getCacheName() );
if ( cache != null )
{
IRemoteCacheClient rc = cache.getRemoteCache();
if ( log.isDebugEnabled() )
{
log.debug( "Found cache for[ " + cattr.getCacheName() + "], deregistering listener." );
}
// could also store the listener for a server in the manager.
IRemoteCacheListener listener = rc.getListener();
remoteWatch.removeCacheListener( cattr.getCacheName(), listener );
}
else
{
if ( cattr.isReceive() )