public void doneWithInvalidResponse(InvalidResponseException e){
  lock.lock();
  try {
    illegalResponseException=e;
    condition.signal();
  }
  finally {
    lock.unlock();
  }
}

public void doneWithInvalidResponse ( InvalidResponseException e ) { lock . lock ( ) ; try { illegalResponseException = e ; condition . signal ( ) ; } finally { lock . unlock ( ) ; } }
done with invalid response ( negative response / non ok command_status ) .
