code: @Override
    public TermsEnum iterator() throws IOException {
      if (delegateTerms != null) {
        return delegateTerms.iterator();
      } else {
        return TermsEnum.EMPTY;
      }
    }
docs: /*
  (non-Javadoc)
  
  @see org.apache.lucene.index.Terms#iterator()