/* don't add an empty list */
if (relatedTopics.size() != 0)
{
final Node itemizedlist = DocbookUtils.createRelatedTopicItemizedList(xmlDoc, "Related " + genericInjectionPoint.getCategoryIDAndName().getSecond() + "s");
Collections.sort(relatedTopics, new TopicV1TitleComparator());
for (final TopicV1 relatedTopic : relatedTopics)
{
if (internal)
DocbookUtils.createRelatedTopicULink(xmlDoc, getURLToInternalTopic(relatedTopic.getId()), relatedTopic.getTitle(), itemizedlist);