/*
  private void setTestCondition(String condName, boolean bool) {      Condition condX = conditionService.getConditionByName(condName);            DisconnectDefCon cond = null;      if (cond != null) {          if (cond instanceof DisconnectDefCon) {            cond = (DisconnectDefCon)condX;          } else {              logger.error("Condition ["+condName+"] of another type (not DisconnectDefCon) already exists.");              if (eventService.isEventEnabled()) {                  eventService.event("ERROR: Condition ["+condName+"] of another type (not DisconnectDefCon) already exists.");              }          }      }                boolean newCond = false;      if (cond == null) { // create new condition          cond = new DisconnectDefCon(condName, condName, condName);          newCond = true;      }                if (bool) {          cond.setValue(DefenseConstants.BOOL_TRUE);      }      else {          cond.setValue(DefenseConstants.BOOL_FALSE);      }      blackboard.openTransaction();      if (newCond) {          blackboard.publishAdd(cond);      } else {          blackboard.publishChange(cond);      }      blackboard.closeTransaction();      if (logger.isDebugEnabled()) logger.debug("Condition "+condName+" set to "+ cond.getValue());      if (eventService.isEventEnabled()) {          eventService.event("Condition "+condName+" set to "+ cond.getValue());      }  }