((UTILGenericListener) myListener).wakeUp();
if (workToBeDone) { if (logger.isDebugEnabled()) logger.debug("UTILBufCal.react: asking listener to wake up?"); ((UTILGenericListener) myListener).wakeUp(); }
  public void reactToRehydrate () {    Collection contents = mySub.getCollection ();	    if (logger.isInfoEnabled())      logger.info ("UTILBufferingCallback.reactToRehydrate - Notifying " + myListener + 		   " about " + contents.size () + " previously buffered tasks.");    for (Iterator iter = contents.iterator (); iter.hasNext ();) {      Task t = (Task) iter.next();	        if (isWellFormed (t)) {	((UTILGenericListener) myListener).handleTask (t);	if (logger.isDebugEnabled())	  logger.debug ("UTILBufferingCallback.reactToRehydrate - Notifying " + myListener + 			" about " + t.getUID());      }    }    ((UTILGenericListener) myListener).wakeUp();  }  