sb.append("<code>");
sb.append(escape(codeName));
sb.append("</code>\n");
String location = se.getLocation();
LocationType locationType = se.getLocationType();
if (locationType == null) {
locationType = LocationType.OTHER;
}
if (location != null) {
sb.append("<location type='");
sb.append(escape(locationType.toString()));
sb.append("'>");
sb.append(escape(location));
sb.append("</location>\n");
}