String n = (String)condition.getArgs().get("negate"); condition.getArgs().remove("negate");  cond.setNegate("true".equalsIgnoreCase(n) || "yes".equalsIgnoreCase(n));
  public ConditionDescriptor add()  {    ConfigConditionDescriptor condition = getCondition();    if(condition == null)    {      return null;    }    condition = editCondition(condition, WorkflowDesigner.INSTANCE);    if(condition != null)    {      ConditionDescriptor cond = DescriptorFactory.getFactory().createConditionDescriptor();      //			cond.setId(0);      //			cond.setNegate(false);      cond.setParent(getParent());      cond.setType(condition.getType());      cond.setName(condition.getName());      cond.getArgs().putAll(condition.getArgs());      return cond;    }    else    {      return null;    }  }