code: public TermDocs termDocs(Term term) throws IOException
     {
        // do not wrap for empty TermDocs
        TermDocs td = in.termDocs(term);
        if (td != EmptyTermDocs.INSTANCE)
        {
           td = new FilteredTermDocs(td);
        }
        return td;
     }
docs: Wraps the underlying <code>TermDocs</code> and filters out documents
  marked as deleted.<br>
  If <code>term</code> is for a {@link FieldNames#UUID} field and this
  <code>ReadOnlyIndexReader</code> does not have such a document,
  {@link EmptyTermDocs#INSTANCE} is returned.
  
  @param term the term to enumerate the docs for.
  @return TermDocs for <code>term</code>.
  @throws IOException if an error occurs while reading from the index.