Iterator it = conditionSubscription.getCollection().iterator();
List l; synchronized(conditionEnabled) { l = new ArrayList(conditionEnabled); }     Iterator it = l.iterator();
  public boolean changeApplicabilityCondition(String name) {    String condition = defenseName + ":" + name;    Iterator it = conditionSubscription.getCollection().iterator();    while(it.hasNext()) {      RestartDefenseCondition rdc = (RestartDefenseCondition)it.next();      if(rdc != null && rdc.getAssetType().equals(assetType) && rdc.getAsset().equals(name)) {        if(rdc.getValue().toString().equalsIgnoreCase("true"))          rdc.setValue(DefenseConstants.BOOL_FALSE);        else          rdc.setValue(DefenseConstants.BOOL_TRUE);        if (logger.isDebugEnabled())          logger.debug("** setRestartCondition - " + rdc.getName() + "=" + rdc.getValue());        defenseConditionQueue.add(rdc);        return true;      }    }    return false;    /*RestartDefenseCondition rdc = (RestartDefenseCondition)conditionService.getConditionByName(condition);    if (rdc != null) {      if(rdc.getValue().toString().equalsIgnoreCase("true"))        rdc.setValue(DefenseConstants.BOOL_FALSE);      else        rdc.setValue(DefenseConstants.BOOL_TRUE);      if (logger.isDebugEnabled())        logger.debug("** setRestartCondition - " + rdc.getName() + "=" + rdc.getValue());      defenseConditionQueue.add(rdc);    } else {      if (logger.isDebugEnabled()) logger.debug("** Cannot find condition object!");    }*/  }