Task task = (Task) iterator.next(); if (task.getPlanElement() == null) { if (logger.isWarnEnabled()) logger.warn ("GLSExpanderPlugin.execute - strange, modified task " + task.getUID() + "\nhas not been expanded"); expand(task); } else { update(task); }
logger.error(getAgentIdentifier() + " ignoring a changed task " + (Task) iterator.next());
  private void handleChangedTasks(Collection changes) {    for (Iterator iterator = changes.iterator(); iterator.hasNext();) {      Task task = (Task) iterator.next();      if (task.getPlanElement() == null) {	if (logger.isWarnEnabled())	  logger.warn ("GLSExpanderPlugin.execute - strange, modified task " + 		     task.getUID() + 		     "\nhas not been expanded");	expand(task);      } else {	update(task);      }    }  } 