public void removeProxyReg(ProxyReg reg){
  ProxyRegDropTask t;
synchronized (serviceIdMap) {
    EventReg eReg=(EventReg)eventRegMap.get(reg);
    if (eReg != null) {
      try {
        leaseRenewalMgr.remove(eReg.lease);
      }
 catch (      Exception e) {
        logger.log(Level.FINER,"exception occurred while removing an " + "event registration lease",e);
      }
    }
    t=new ProxyRegDropTask(lookupCacheClassLoader,reg,taskSeqN++);
  }
  removeUselessTask(reg);
  cacheTaskMgr.add(t);
}

public void removeProxyReg ( ProxyReg reg ) { ProxyRegDropTask t ; synchronized ( serviceIdMap ) { EventReg eReg = ( EventReg ) eventRegMap . get ( reg ) ; if ( eReg != null ) { try { leaseRenewalMgr . remove ( eReg . lease ) ; } catch ( Exception e ) { logger . log ( Level . FINER , "exception occurred while removing an " + "event registration lease" , e ) ; } } t = new ProxyRegDropTask ( lookupCacheClassLoader , reg , taskSeqN ++ ) ; } removeUselessTask ( reg ) ; cacheTaskMgr . add ( t ) ; }
remove a proxyreg from the lookupcache . called by discmgrlistener ' s discarded ( ) method .
