public void processTopicAdditionalInfo ( final BuildData buildData , final SpecTopic specTopic , final Document document ) throws BuildProcessingException { // First check if we should even bother processing any additional info based on build data if ( ! shouldAddAdditionalInfo ( buildData , specTopic ) ) return ; final List < Node > invalidNodes = XMLUtilities . getChildNodes ( document . getDocumentElement ( ) , "section" ) ; // Only add injections if the topic doesn't contain any invalid nodes. The reason for this is that adding any links to topics // that contain <section> will cause the XML to become invalid. Unfortunately there isn't any way around this. if ( invalidNodes == null || invalidNodes . size ( ) == 0 ) { final Element rootEle = getRootAdditionalInfoElement ( document , document . getDocumentElement ( ) ) ; if ( buildData . getBuildOptions ( ) . getInsertEditorLinks ( ) && specTopic . getTopicType ( ) != TopicType . AUTHOR_GROUP ) { processTopicEditorLinks ( buildData , specTopic , document , rootEle ) ; } // Only include a bugzilla link for normal topics if ( buildData . getBuildOptions ( ) . getInsertBugLinks ( ) && specTopic . getTopicType ( ) == TopicType . NORMAL ) { processTopicBugLink ( buildData , specTopic , document , rootEle ) ; } } }
Adds some debug information and links to the end of the topic