}
if (!Utils.isEmpty(activity.getParentId())) {
jsonString.append(JSON_PARENT_TRACK_ID_LABEL).append(ATTR_SEP).append(
Utils.quote(activity.getParentId())).append(ATTR_JSON);
}
<BUG>jsonString.append(JSON_SOURCE_LABEL).append(ATTR_SEP).append(Utils.quote(activity.getSource().getName())).append(ATTR_JSON);
</BUG>
String ssn = activity.getSource().getSourceFactory().getSSN();
if (!Utils.isEmpty(ssn)) {
String escaped = StringEscapeUtils.escapeJson(ssn); // escape double quote chars

}
if (!Utils.isEmpty(event.getParentId())) {
jsonString.append(JSON_PARENT_TRACK_ID_LABEL).append(ATTR_SEP).append(
Utils.quote(event.getParentId())).append(ATTR_JSON);
}
jsonString.append(JSON_SOURCE_LABEL).append(ATTR_SEP).append(Utils.quote(StringEscapeUtils.escapeJson(event.getSource().getName()))).append(ATTR_JSON);
String ssn = event.getSource().getSourceFactory().getSSN();
if (!Utils.isEmpty(ssn)) {
String escaped = StringEscapeUtils.escapeJson(ssn); // escape double quote chars
