private List<Entry> processBadLeases(long now){
  List<Entry> bad=null;
synchronized (LeaseRenewalManager.this) {
    for (Iterator<Entry> iter=bList.iterator(); iter.hasNext(); ) {
      Entry e=iter.next();
      if (e.endTime <= now) {
        iter.remove();
        logExpiration(e);
        removeLeaseInRenew(e);
        if (e.listener != null) {
          if (bad == null)           bad=new ArrayList<Entry>(1);
          bad.add(e);
        }
      }
    }
  }
  return bad;
}

private List < Entry > processBadLeases ( long now ) { List < Entry > bad = null ; synchronized ( LeaseRenewalManager . this ) { for ( Iterator < Entry > iter = bList . iterator ( ) ; iter . hasNext ( ) ; ) { Entry e = iter . next ( ) ; if ( e . endTime <= now ) { iter . remove ( ) ; logExpiration ( e ) ; removeLeaseInRenew ( e ) ; if ( e . listener != null ) { if ( bad == null ) bad = new ArrayList < Entry > ( 1 ) ; bad . add ( e ) ; } } } } return bad ; }
find any expired leases , remove them from blist and leaseinrenew , and return any with listeners .
