code: @Override
      public void stage6Expansion(final Document doc, final ProtoNetwork pn,
              boolean expandNestedStatements) {
          // expand statements, including whether nested statement should be
          // expanded
          expansion.expandStatements(doc, pn, expandNestedStatements);
  
          // expand terms if not disabled
          expansion.expandTerms(doc, pn);
      }
docs: {@inheritDoc}