private synchronized boolean stillLeased() throws InterruptedException {
  if (_cancelled)   return false;
  _expirationTime=SystemTime.timeMillis() + _duration;
  wait(_duration);
  if (_renewed) {
    _renewed=false;
    return true;
  }
  _expired=true;
  return false;
}

private synchronized boolean stillLeased ( ) throws InterruptedException { if ( _cancelled ) return false ; _expirationTime = SystemTime . timeMillis ( ) + _duration ; wait ( _duration ) ; if ( _renewed ) { _renewed = false ; return true ; } _expired = true ; return false ; }
waits until this lease expires .
