code: public static IndexEntry[] processIndexString(final String theIndexMarkerString, final List<Node> contents) {
          final IndexEntryImpl indexEntry = createIndexEntry(theIndexMarkerString, contents, null, false);
          final StringBuffer referenceIDBuf = new StringBuffer();
          referenceIDBuf.append(indexEntry.getValue());
          referenceIDBuf.append(VALUE_SEPARATOR);
          indexEntry.addRefID(referenceIDBuf.toString());
  
          return new IndexEntry[] { indexEntry };
      }
docs: Parse the index marker string and create IndexEntry object from one.
  
  @param theIndexMarkerString index marker string
  @param contents IndexPreprocessorTask instance
  @return IndexEntry objects created from the index string