Enumeration enum = rootplan.searchBlackboard(pred); while (enum.hasMoreElements()) { PlanElement pe = (PlanElement) enum.nextElement();
Enumeration en = rootplan.searchBlackboard(pred); while (en.hasMoreElements()) { PlanElement pe = (PlanElement) en.nextElement();
  public void restart(final MessageAddress cid) {    UnaryPredicate pred = new UnaryPredicate() {      public boolean execute(Object o) {        if (o instanceof PlanElement) {          PlanElement pe = (PlanElement) o;          MessageAddress source = pe.getTask().getSource();          return RestartLogicProviderHelper.matchesRestart(self, cid, source);        }        return false;      }    };    Enumeration enum = rootplan.searchBlackboard(pred);    while (enum.hasMoreElements()) {      PlanElement pe = (PlanElement) enum.nextElement();      checkValues(pe, null);    }