Enumeration enum = rootplan.searchBlackboard(pred); if (enum != null && enum.hasMoreElements()) { org = (Organization)enum.nextElement();
Enumeration en = rootplan.searchBlackboard(pred); if (en != null && en.hasMoreElements()) { org = (Organization)en.nextElement();
  private void processOrgActivity(OrgActivity oa, int action) {    // find the matching Organization    final String orgID = oa.getOrgID();    if (logger.isDebugEnabled()) {      logger.debug("OplanWatcherLP() - OrgActivity = " + oa +		   " action = " + action);    }    Organization org = null;    UnaryPredicate pred =       new UnaryPredicate() {        public boolean execute(Object o) {          if (o instanceof Organization) {            return orgID.equals(((Organization)o).getMessageAddress().toString());          }           return false;        }      };    Enumeration enum = rootplan.searchBlackboard(pred);    if (enum != null && enum.hasMoreElements()) {      org = (Organization)enum.nextElement();    } else {