question: 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 ; }
target:  Find any expired leases, remove them from bList and leaseInRenew, and return any with listeners.