code: private void outputIndexTerm(final IndexTerm term, final XMLStreamWriter serializer, final boolean indexsee) throws XMLStreamException {
          final List<IndexTerm> subTerms = term.getSubTerms();
          final int subTermNum = subTerms.size();
          outputIndexTermStartElement(term, serializer, indexsee);
          if (subTermNum > 0) {
              for (final IndexTerm subTerm : subTerms) {
                  outputIndexTerm(subTerm, serializer, indexsee);
              }
          }
          outputIndexTermEndElement(term, serializer, indexsee);
      }
docs: Output the given indexterm into the XML writer.
  
  @param term term to serialize
  @param serializer XML output to write to
  @param indexsee is term a see term