@Override public void run(){
  try {
    LOGGER.log(Level.FINEST,"Start Mark-And-Sweep with {0} entries",incomingMessages.size());
    sweep();
  }
 catch (  Throwable t) {
    LOGGER.log(Level.WARNING,"Exception in Mark-and-Sweep algorithm",t);
  }
 finally {
    try {
      schedule();
    }
 catch (    Throwable t) {
      LOGGER.log(Level.WARNING,"Exception while scheduling Mark-and-Sweep algorithm",t);
    }
  }
}

@ Override public void run ( ) { try { LOGGER . log ( Level . FINEST , "Start Mark-And-Sweep with {0} entries" , incomingMessages . size ( ) ) ; sweep ( ) ; } catch ( Throwable t ) { LOGGER . log ( Level . WARNING , "Exception in Mark-and-Sweep algorithm" , t ) ; } finally { try { schedule ( ) ; } catch ( Throwable t ) { LOGGER . log ( Level . WARNING , "Exception while scheduling Mark-and-Sweep algorithm" , t ) ; } } }
this method wraps the method sweep ( ) to catch any exceptions that might be thrown .
