String s = section.getContent(document);
for (String i : Directive.IAR_LIST) {
if (s.compareToIgnoreCase(i) == 0) {
// Replace SYMBOL with DIRECTIVE.
Section directiveSection = new Directive();
directiveSection.copyPosition(section);
directiveSection.setNextSection(nextSection);
// Special link handling.
if (prevSection != null) {
prevSection.setNextSection(directiveSection);
} else {