Map hVars = field.getVars();
// Loop through the field's variables.
for (Iterator iVars = hVars.keySet().iterator(); iVars.hasNext(); ) {
String varKey = (String)iVars.next();
Var var = (Var)hVars.get(varKey);
String varValue = var.getValue();
String jsType = var.getJsType();
if (Var.JSTYPE_INT.equalsIgnoreCase(jsType)) {
results.append("this." + varKey + "=" + ValidatorUtil.replace(varValue, "\\", "\\\\") + "; ");
} else if (Var.JSTYPE_REGEXP.equalsIgnoreCase(jsType)) {
results.append("this." + varKey + "=/" + ValidatorUtil.replace(varValue, "\\", "\\\\") + "/; ");