Enumeration enum = rootplan.searchBlackboard(pred); while (enum.hasMoreElements()) { AssetTransfer at = (AssetTransfer) enum.nextElement();
Enumeration e = rootplan.searchBlackboard(pred); while (e.hasMoreElements()) { AssetTransfer at = (AssetTransfer) e.nextElement();
  public void restart(final MessageAddress cid) {    UnaryPredicate pred = new UnaryPredicate() {      public boolean execute(Object o) {        if (o instanceof AssetTransfer) {          AssetTransfer at = (AssetTransfer) o;          MessageAddress assignee =             at.getAssignee().getClusterPG().getMessageAddress();          return             RestartLogicProviderHelper.matchesRestart(                self, cid, assignee);        }        return false;      }    };    Enumeration enum = rootplan.searchBlackboard(pred);    while (enum.hasMoreElements()) {      AssetTransfer at = (AssetTransfer) enum.nextElement();      rootplan.sendDirective(createAssetAssignment(at, AssetAssignment.REPEAT, true));    }