private void addTrimElement(IXMLElement elem, String type, CppFile func, LinkedList funcImpls) {
private void addTrimElement(IXMLElement elem, String type, CppFile func, LinkedList funcImpls) throws TestLangRuntimeException {
  private void addTrimElement(IXMLElement elem, String type, CppFile func, LinkedList funcImpls) {    String setType = type.substring(0, 1).toUpperCase() + type.substring(1);    String trimType = elem.getName().substring(0, 1).toUpperCase() + elem.getName().substring(1);    if(elem.getName().equals("variable")) {      IXMLElement name = elem.getFirstChildNamed("name");      IXMLElement value = elem.getFirstChildNamed("value");      String nameOp = (String) opToFuncMap.get(name.getAttribute("operator", ""));      String nameDomain = evaluate(name.getChildAtIndex(0), funcImpls);      String nameDomName = getCurrentDomainName(name.getChildAtIndex(0));      String valOp = (String) opToFuncMap.get(value.getAttribute("operator", ""));      String valDomain = evaluate(value.getChildAtIndex(0), funcImpls,                                   "m_db->getSchema()->getEnumFromMember(" + evalValue(value.getChildAtIndex(0).getChildAtIndex(0)) + ")");      String valDomName = getCurrentDomainName(value.getChildAtIndex(0));      func.addLine(enumDomainType(name.getChildAtIndex(0)) + " " + nameDomName + " = " + nameDomain);      if(value.getChildAtIndex(0).getName().equals("IntervalDomain"))        func.addLine("IntervalIntDomain " + valDomName + " = " + valDomain);      else        func.addLine(enumDomainType(value.getChildAtIndex(0)) + " " + valDomName + " = " + valDomain);      func.addLine("trim" + setType + "By" + trimType + "(temp, " +                   nameOp + ", " + nameDomName + ", " + valOp + ", " +                   valDomName + ");");    }    else {      String domain = evaluate(elem.getChildAtIndex(0), funcImpls);            if(elem.getChildAtIndex(0).getName().equals("IntervalDomain"))        func.addLine("IntervalIntDomain " +                      getCurrentDomainName(elem.getChildAtIndex(0)) + " = " + domain);      else        func.addLine(enumDomainType(elem.getChildAtIndex(0)) + " " + getCurrentDomainName(elem.getChildAtIndex(0)) + " = " + domain);      func.addLine("trim" + setType + "By" + trimType + "(temp, " +                    opToFuncMap.get(elem.getAttribute("operator", "")).toString() + ", " +                   getCurrentDomainName(elem.getChildAtIndex(0)) + ");");    }  }