Enumeration enum = rootplan.searchBlackboard(pred); while (enum.hasMoreElements()) { TransferableTransfer tt = (TransferableTransfer) enum.nextElement();
Enumeration en = rootplan.searchBlackboard(pred); while (en.hasMoreElements()) { TransferableTransfer tt = (TransferableTransfer) en.nextElement();
  public void restart(final MessageAddress cid) {    UnaryPredicate pred = new UnaryPredicate() {      public boolean execute(Object o) {        if (o instanceof TransferableTransfer) {          TransferableTransfer tt = (TransferableTransfer) o;          MessageAddress dest =             ((Organization)tt.getAsset()).getMessageAddress();          return             RestartLogicProviderHelper.matchesRestart(                self, cid, dest);        }        return false;      }    };    Enumeration enum = rootplan.searchBlackboard(pred);    while (enum.hasMoreElements()) {      TransferableTransfer tt = (TransferableTransfer) enum.nextElement();      MessageAddress dest = ((Organization)tt.getAsset()).getMessageAddress();      processTransferableTransferAdded(tt, dest);    }