pred = new UnaryPredicate() { public boolean execute(Object o) { if (o instanceof Transferable) { Transferable transferable = (Transferable) o;   MessageAddress dest = transferable.getSource(); return RestartLogicProviderHelper.matchesRestart( self, cid, dest); } return false; } }; for (en = rootplan.searchBlackboard(pred); en.hasMoreElements(); ) { Transferable transferable = (Transferable) en.nextElement(); NewTransferableVerification nav = ldmf.newTransferableVerification(transferable); nav.setSource(self); nav.setDestination(transferable.getSource()); rootplan.sendDirective(nav); } }
  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);    }