content += tag.getName() + ", ";
}
content += "</i><br />";
}
else if (DefectStatus.class.isInstance(newField)) {
DefectStatus oldValue = (DefectStatus)oldField;
DefectStatus newValue = (DefectStatus)newField;
if (oldValue != null && newValue != null) {
content += " <b>FROM</b><i> " + oldValue.toString() + " </i><b>TO</b><i> " + newValue.toString() + "</i><br />";
}
}
// the field type is not recognized
else {
throw new RuntimeException("Cannot handle a FieldChange of generic type " + oldField + " for field name " + fieldName);