workToBeDone = true; ((UTILGenericListener) myListener).handleTask (t); if (logger.isDebugEnabled()) logger.debug ("UTILBufferingCallback.reactToRehydrate - Notifying " + myListener + " about " + t.getUID());
if (t.getPlanElement() == null) { workToBeDone = true; ((UTILGenericListener) myListener).handleTask (t); if (logger.isDebugEnabled()) logger.debug ("UTILBufferingCallback.reactToRehydrate - Notifying " + myListener + " about " + t.getUID()); }
  public void reactToRehydrate () {    Collection contents = mySub.getCollection ();	    if (logger.isInfoEnabled())      logger.info ("UTILBufferingCallback.reactToRehydrate - Notifying " + myListener + 		   " about " + contents.size () + " previously buffered tasks.");    // Only want to call wakeUp if some tasks still match    boolean workToBeDone = false;    for (Iterator iter = contents.iterator (); iter.hasNext ();) {      Task t = (Task) iter.next();            if (isWellFormed (t)) {	workToBeDone = true; // Will need to have plugin wake up later	((UTILGenericListener) myListener).handleTask (t);	if (logger.isDebugEnabled())	  logger.debug ("UTILBufferingCallback.reactToRehydrate - Notifying " + myListener + 			" about " + t.getUID());      }    }    if (workToBeDone) {      if (logger.isDebugEnabled())	logger.debug("UTILBufCal.react: asking listener to wake up?");      ((UTILGenericListener) myListener).wakeUp();    }  }  