return fTableOfContentTag;
}
private void addToTableOfContent(List<Object> toc, String head, String anchor, int headLevel) {
if (headLevel == 1) {
toc.add(new StringPair(head, anchor));
} else {
if (toc.size() > 0) {
if (toc.get(toc.size() - 1) instanceof List) {
addToTableOfContent((List<Object>) toc.get(toc.size() - 1), head, anchor, --headLevel);
return;